(feat) links to calendars

This commit is contained in:
Ludovic Marcotte
2015-06-12 13:34:08 -04:00
committed by Francis Lachapelle
parent a89b116940
commit ee9e559765
7 changed files with 273 additions and 4 deletions

View File

@@ -16,6 +16,7 @@
vm.addWebCalendar = addWebCalendar;
vm.confirmDelete = confirmDelete;
vm.share = share;
vm.showLinks = showLinks;
vm.subscribeToFolder = subscribeToFolder;
// Dispatch the event named 'calendars:list' when a calendar is activated or deactivated or
@@ -91,6 +92,28 @@
}
}
function showLinks(selectedFolder) {
$mdDialog.show({
parent: angular.element(document.body),
clickOutsideToClose: true,
escapeToClose: true,
templateUrl: selectedFolder.id + '/links',
locals: {
},
controller: LinksDialogController
});
/**
* @ngInject
*/
LinksDialogController.$inject = ['scope', '$mdDialog'];
function LinksDialogController(scope, $mdDialog) {
scope.close = function(type) {
$mdDialog.hide();
}
}
}
function share(calendar) {
$mdDialog.show({
templateUrl: calendar.id + '/UIxAclEditor', // UI/Templates/UIxAclEditor.wox