mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-22 03:45:25 +00:00
Handle attendee conflicts in the Web interface
See @d7b010
This commit is contained in:
@@ -162,6 +162,7 @@
|
||||
vm.addAttachUrl = addAttachUrl;
|
||||
vm.cancel = cancel;
|
||||
vm.save = save;
|
||||
vm.attendeeConflictError = false;
|
||||
vm.attendeesEditor = {
|
||||
days: getDays(),
|
||||
hours: getHours()
|
||||
@@ -217,15 +218,18 @@
|
||||
}
|
||||
}
|
||||
|
||||
function save(form) {
|
||||
function save(form, options) {
|
||||
if (form.$valid) {
|
||||
vm.component.$save()
|
||||
vm.component.$save(options)
|
||||
.then(function(data) {
|
||||
$rootScope.$emit('calendars:list');
|
||||
$mdDialog.hide();
|
||||
Alarm.getAlarms();
|
||||
}, function(data, status) {
|
||||
$log.debug('failed');
|
||||
}, function(response) {
|
||||
if (response.status == 403 &&
|
||||
response.data && response.data.message && angular.isObject(response.data.message)) {
|
||||
vm.attendeeConflictError = response.data.message;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user