Show initial tag sidebar
This commit is contained in:
@@ -7,6 +7,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
$scope.HOST_PORT_MIN = 1024;
|
||||
$scope.HOST_PORT_MAX = 65535;
|
||||
$scope.installedApps = Client.getInstalledApps();
|
||||
$scope.tags = Client.getAppTags();
|
||||
$scope.selectedTags = [];
|
||||
$scope.config = Client.getConfig();
|
||||
$scope.user = Client.getUserInfo();
|
||||
$scope.domains = [];
|
||||
@@ -27,6 +29,12 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
|
||||
}).length > 1;
|
||||
};
|
||||
|
||||
$scope.toggleTag = function (tag) {
|
||||
var pos = $scope.selectedTags.indexOf(tag);
|
||||
if (pos !== -1) $scope.selectedTags.splice(pos, 1);
|
||||
else $scope.selectedTags.push(tag);
|
||||
};
|
||||
|
||||
$scope.appConfigure = {
|
||||
busy: false,
|
||||
error: {},
|
||||
|
||||
Reference in New Issue
Block a user