Reflect attendee type with generic icon

This commit is contained in:
Francis Lachapelle
2019-07-04 15:10:41 -04:00
parent 5f08b25d9c
commit e24082183f
6 changed files with 29 additions and 10 deletions

View File

@@ -169,6 +169,8 @@
uid: card.c_uid,
domain: card.c_domain,
isMSExchange: card.ismsexchange,
isGroup: card.$isList(),
isResource: card.isresource,
name: card.c_cn,
email: card.$preferredEmail(),
role: Attendees.ROLES.REQ_PARTICIPANT,

View File

@@ -337,6 +337,16 @@
form.$setDirty();
};
this.defaultIconForAttendee = function (attendee) {
if (attendee.isGroup) {
return 'group';
} else if (attendee.isResource) {
return 'meeting_room';
} else {
return 'person';
}
};
this.nextSlot = function () {
findSlot(1);
};