Skip to content

Commit

Permalink
Set default values for activity
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Musale <martinmusale@microsoft.com>
  • Loading branch information
musale committed Jul 6, 2023
1 parent c126c82 commit 8f50776
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions packages/mgt-components/src/components/mgt-person/mgt-person.ts
Original file line number Diff line number Diff line change
Expand Up @@ -746,26 +746,25 @@ export class MgtPerson extends MgtTemplatedComponent {
switch (availability) {
case 'Available':
switch (activity) {
case 'Available':
presenceIcon = getSvg(SvgIcon.PresenceAvailable);
break;
case 'OutOfOffice':
presenceIcon = getSvg(SvgIcon.PresenceOofAvailable);
break;
// OutOfOffice and Uknowns
default:
presenceIcon = getSvg(SvgIcon.PresenceAvailable);
break;
}
break;
case 'Busy':
switch (activity) {
case 'Busy':
case 'InACall':
case 'InAConferenceCall':
case 'InAMeeting':
presenceIcon = getSvg(SvgIcon.PresenceBusy);
break;
case 'OutOfOffice':
case 'OnACall':
presenceIcon = getSvg(SvgIcon.PresenceOofBusy);
break;
// Busy,InACall,InAConferenceCall,InAMeeting, Unknown
default:
presenceIcon = getSvg(SvgIcon.PresenceBusy);
break;
}
break;
case 'DoNotDisturb':
Expand Down

0 comments on commit 8f50776

Please sign in to comment.