On branch master
Changes to be committed:
modified: app/scripts/App.ts
modified: app/scripts/controllers/SelectCommand.ts
new file: app/scripts/filters/Tag.ts
modified: app/scripts/reference.ts
modified: app/templates/select-command.html
modified: dist/bundle.js
modified: dist/templates/select-command.html
});
zephyr.service('APIEndPoint', services.APIEndPoint);
});
zephyr.service('APIEndPoint', services.APIEndPoint);
+
+ zephyr.filter('Tag', filters.Tag);
zephyr.controller('selectCommandController', controllers.SelectCommand);
zephyr.controller('selectCommandController', controllers.SelectCommand);
zephyr.service('MyModal', services.MyModal);
zephyr.controller('executionController', controllers.Execution);
zephyr.service('MyModal', services.MyModal);
zephyr.controller('executionController', controllers.Execution);
.$promise.then((result) => {
controller.commands = result.info;
});
.$promise.then((result) => {
controller.commands = result.info;
});
- this.currnetTag = 'all';
+ this.currentTag = 'all';
+
+ private changeTag(tag: string) {
+ this.currentTag = tag;
+ }
--- /dev/null
+namespace filters {
+ export function Tag() {
+ return function(commands, tag) {
+ var result = []
+ angular.forEach(commands, function(command) {
+ var flag = false
+ angular.forEach(command.tags, function(value) {
+ if (tag === value) flag = true
+ })
+ if(flag) result.push(command)
+ })
+ return result
+ }
+ }
+}
+
/// <reference path="./controllers/History.ts" />
/// <reference path="./controllers/SelectCommand.ts" />
/// <reference path="./controllers/History.ts" />
/// <reference path="./controllers/SelectCommand.ts" />
+/// <reference path="./filters/Tag.ts" />
<div class="row">
<div class="col-md-8">
<div class="btn-group"ng-repeat="tag in c.tags">
<div class="row">
<div class="col-md-8">
<div class="btn-group"ng-repeat="tag in c.tags">
- <button type="button" class="btn btn-default btn-xs" ng-click="changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
+ <button type="button" class="btn btn-default btn-xs" ng-click="c.changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="col-md-4">
<!--
<div ng-repeat="command in commands | filter:searchText | tagFilter:tag">
-->
<!--
<div ng-repeat="command in commands | filter:searchText | tagFilter:tag">
-->
- <div ng-repeat="command in c.commands | filter:c.searchText">
+ <div ng-repeat="command in c.commands | filter:c.searchText | Tag:c.currentTag">
<div class="col-md-6">
<a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$even">{{command.name}}</a>
</div>
<div class="col-md-6">
<a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$even">{{command.name}}</a>
</div>
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
.$promise.then(function (result) {
controller.commands = result.info;
});
.$promise.then(function (result) {
controller.commands = result.info;
});
+ this.currentTag = 'all';
+ SelectCommand.prototype.changeTag = function (tag) {
+ this.currentTag = tag;
+ console.log(this.currentTag);
+ };
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
SelectCommand.$inject = ['$scope', 'APIEndPoint'];
return SelectCommand;
})();
controllers.SelectCommand = SelectCommand;
})(controllers = app.controllers || (app.controllers = {}));
})(app || (app = {}));
+ var filters;
+ (function (filters) {
+ function Tag() {
+ return function (commands, tag) {
+ var result = [];
+ angular.forEach(commands, function (command) {
+ var flag = false;
+ angular.forEach(command.tags, function (value) {
+ if (tag === value)
+ flag = true;
+ });
+ if (flag)
+ result.push(command);
+ });
+ return result;
+ };
+ }
+ filters.Tag = Tag;
+ })(filters || (filters = {}));
var app;
(function (app) {
'use strict';
var app;
(function (app) {
'use strict';
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
});
});
app.zephyr.service('APIEndPoint', app.services.APIEndPoint);
+ app.zephyr.filter('Tag', filters.Tag);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
app.zephyr.controller('selectCommandController', app.controllers.SelectCommand);
app.zephyr.service('MyModal', app.services.MyModal);
app.zephyr.controller('executionController', app.controllers.Execution);
<div class="row">
<div class="col-md-8">
<div class="btn-group"ng-repeat="tag in c.tags">
<div class="row">
<div class="col-md-8">
<div class="btn-group"ng-repeat="tag in c.tags">
- <button type="button" class="btn btn-default btn-xs" ng-click="changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
+ <button type="button" class="btn btn-default btn-xs" ng-click="c.changeTag(tag)"><span class="glyphicon glyphicon-tag"></span>{{tag}}</button>
</div>
</div>
<div class="col-md-4">
</div>
</div>
<div class="col-md-4">
<!--
<div ng-repeat="command in commands | filter:searchText | tagFilter:tag">
-->
<!--
<div ng-repeat="command in commands | filter:searchText | tagFilter:tag">
-->
- <div ng-repeat="command in c.commands | filter:c.searchText">
+ <div ng-repeat="command in c.commands | filter:c.searchText | Tag:c.currentTag">
<div class="col-md-6">
<a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$even">{{command.name}}</a>
</div>
<div class="col-md-6">
<a class="pull-left" ng-click="selectCommand(command.name)" ng-if="$even">{{command.name}}</a>
</div>