mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-19 20:09:28 +00:00
Reflect attendee type with generic icon
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user