mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-25 14:59:30 +00:00
(html) Improve Calendar properties dialog
This commit is contained in:
@@ -133,16 +133,21 @@
|
||||
PropertiesDialogController.$inject = ['$mdDialog', 'calendar'];
|
||||
function PropertiesDialogController($mdDialog, calendar) {
|
||||
var vm = this;
|
||||
vm.calendar = calendar;
|
||||
|
||||
vm.close = function() {
|
||||
$mdDialog.hide();
|
||||
};
|
||||
vm.calendar = new Calendar(calendar.$omit());
|
||||
vm.saveProperties = saveProperties;
|
||||
vm.close = close;
|
||||
|
||||
vm.saveProperties = function() {
|
||||
function saveProperties() {
|
||||
vm.calendar.$save();
|
||||
// Refresh list instance
|
||||
calendar.init(vm.calendar.$omit());
|
||||
$mdDialog.hide();
|
||||
};
|
||||
}
|
||||
|
||||
function close() {
|
||||
$mdDialog.hide();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user