Improve ACL editor (Scheduler & Contacts)

This commit is contained in:
Francis Lachapelle
2015-06-02 11:14:03 -04:00
parent e385bf34d5
commit fb992db5ad
11 changed files with 120 additions and 153 deletions

View File

@@ -141,6 +141,7 @@
vm.users = usersWithACL; // ACL users
vm.folder = folder;
vm.selectedUser = null;
vm.userToAdd = '';
vm.searchText = '';
vm.userFilter = userFilter;
@@ -171,9 +172,8 @@
function confirmChange(user) {
var confirmation = user.$confirmRights();
if (confirmation) {
Dialog.confirm(l('Warning'), confirmation).then(function(res) {
if (!res)
user.$resetRights(true);
Dialog.confirm(l('Warning'), confirmation).catch(function() {
user.$resetRights(true);
});
}
}