Give better visual feedback if filters are active and add Clear All button

This commit is contained in:
Johannes Zellner
2022-08-08 17:15:56 +02:00
parent af7d106a99
commit 520b4e1147
3 changed files with 14 additions and 2 deletions
+8
View File
@@ -29,6 +29,7 @@ angular.module('Application').controller('AppsController', ['$scope', '$translat
$scope.groups = [ GROUP_ACCESS_UNSET ];
$scope.APP_TYPES = APP_TYPES;
$scope.showFilter = false;
$scope.filterActive = false;
$scope.allUsers = [];
$scope.allGroups = [];
@@ -70,6 +71,13 @@ angular.module('Application').controller('AppsController', ['$scope', '$translat
else localStorage.selectedDomain = newVal.domain;
});
$scope.clearAllFilter = function () {
$scope.selectedState = $scope.states[0];
$scope.selectedTags = [];
$scope.selectedGroup = GROUP_ACCESS_UNSET;
$scope.selectedDomain = ALL_DOMAINS_DOMAIN;
};
$scope.appPostInstallConfirm = {
app: {},
message: '',