(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,6 +147,7 @@
}
function share(calendar) {
calendar.$acl.$users().then(function() {
$mdDialog.show({
templateUrl: calendar.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox
controller: CalendarACLController,
@ -154,11 +155,12 @@
clickOutsideToClose: true,
escapeToClose: true,
locals: {
usersWithACL: calendar.$acl.$users(),
usersWithACL: calendar.$acl.users,
User: User,
folder: calendar
}
});
});
/**
* @ngInject