(js) Preload ACL users in Calendar module

This commit is contained in:
Francis Lachapelle 2015-07-03 21:45:59 -04:00
parent 1c34e71cdc
commit b948384ec9

View file

@ -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
}
});
}); });
/** /**