(js) Preload ACL users in Calendar module
This commit is contained in:
parent
1c34e71cdc
commit
b948384ec9
|
@ -147,17 +147,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function share(calendar) {
|
function share(calendar) {
|
||||||
$mdDialog.show({
|
calendar.$acl.$users().then(function() {
|
||||||
templateUrl: calendar.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox
|
$mdDialog.show({
|
||||||
controller: CalendarACLController,
|
templateUrl: calendar.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox
|
||||||
controllerAs: 'acl',
|
controller: CalendarACLController,
|
||||||
clickOutsideToClose: true,
|
controllerAs: 'acl',
|
||||||
escapeToClose: true,
|
clickOutsideToClose: true,
|
||||||
locals: {
|
escapeToClose: true,
|
||||||
usersWithACL: calendar.$acl.$users(),
|
locals: {
|
||||||
User: User,
|
usersWithACL: calendar.$acl.users,
|
||||||
folder: calendar
|
User: User,
|
||||||
}
|
folder: calendar
|
||||||
|
}
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue