Show initial tag sidebar

This commit is contained in:
Johannes Zellner
2019-04-12 11:06:56 +02:00
parent 9f8dcdf8ea
commit f89f201764
4 changed files with 66 additions and 0 deletions

View File

@@ -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: {},