diff --git a/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox b/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox index 9e043c646..bb05d5cde 100644 --- a/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox +++ b/UI/Templates/SchedulerUI/UIxAppointmentEditorTemplate.wox @@ -232,8 +232,11 @@
-
{{$chip.name}}
+
{{$chip.name || $chip.email}}
+ close
diff --git a/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox b/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox index c8994a6f4..4dccaf377 100644 --- a/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox +++ b/UI/Templates/SchedulerUI/UIxAttendeesEditor.wox @@ -24,6 +24,11 @@
{{currentAttendee.name}}
{{currentAttendee.email}}
+ + close + diff --git a/UI/WebServerResources/js/Scheduler/Component.service.js b/UI/WebServerResources/js/Scheduler/Component.service.js index 0e588adfc..4a407f1a9 100644 --- a/UI/WebServerResources/js/Scheduler/Component.service.js +++ b/UI/WebServerResources/js/Scheduler/Component.service.js @@ -739,6 +739,19 @@ return angular.isDefined(attendee); }; + /** + * @function deleteAttendee + * @memberof Component.prototype + * @desc Remove an attendee from the component + * @param {Object} attendee - an object literal defining an attendee + */ + Component.prototype.deleteAttendee = function(attendee) { + var index = _.findIndex(this.attendees, function(currentAttendee) { + return currentAttendee.email == attendee.email; + }); + this.attendees.splice(index, 1); + }; + /** * @function canRemindAttendeesByEmail * @memberof Component.prototype diff --git a/UI/WebServerResources/scss/components/chips/chips.scss b/UI/WebServerResources/scss/components/chips/chips.scss index 7ebd91277..cc51bec5c 100644 --- a/UI/WebServerResources/scss/components/chips/chips.scss +++ b/UI/WebServerResources/scss/components/chips/chips.scss @@ -12,6 +12,15 @@ md-chips { .md-chip-content { max-width: initial; // fix bug in ng-material } + // Custom 'chip remove' button used with chips in readonly mode + .sg-chip-remove { + &:hover { + cursor: pointer; + } + height: $chip-delete-icon-size; + width: $chip-delete-icon-size; + line-height: $chip-delete-icon-size; + } } } }