mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-30 07:35:39 +00:00
(fix) don't show a dialog on top of a dialog for acl confirmation
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
vm.removeUser = removeUser;
|
||||
vm.addUser = addUser;
|
||||
vm.selectUser = selectUser;
|
||||
vm.confirmation = { showing: false,
|
||||
message: ''};
|
||||
|
||||
function userFilter($query) {
|
||||
return User.$filter($query, folder.$acl.users);
|
||||
@@ -43,9 +45,8 @@
|
||||
function confirmChange(user) {
|
||||
var confirmation = user.$confirmRights();
|
||||
if (confirmation) {
|
||||
Dialog.confirm(l('Warning'), confirmation).catch(function() {
|
||||
user.$resetRights(true);
|
||||
});
|
||||
vm.confirmation.showing = true;
|
||||
vm.confirmation.message = confirmation;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user