feat(calendar(web)): allow to change the classification of an event

This commit is contained in:
Francis Lachapelle
2020-11-04 16:15:13 -05:00
parent 3796009eca
commit 4a83733039
6 changed files with 61 additions and 8 deletions
@@ -941,7 +941,8 @@
data = {
reply: this.reply,
delegatedTo: this.delegatedTo,
alarm: this.$hasAlarm? this.alarm : {}
alarm: this.$hasAlarm? this.alarm : {},
classification: this.classification
};
return Component.$$resource.save(path, data, { action: 'rsvpAppointment' })
@@ -128,10 +128,11 @@
// Retrieve master event
component = Calendar.$get(this.component.pid).$getComponent(this.component.id);
component.$futureComponentData.then(function() {
// Propagate the participant status and alarm to the master event
// Propagate the participant status, classification and alarm to the master event
component.reply = vm.component.reply;
component.delegatedTo = vm.component.delegatedTo;
component.$hasAlarm = vm.component.$hasAlarm;
component.classification = vm.component.classification;
component.alarm = vm.component.alarm;
// Send reply to the server
vm.reply(component);