mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-19 03:49:28 +00:00
(js,html) Allow the removable of attendees
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user