Skip to content

Commit

Permalink
Do not display offline (and invisible) as a status
Browse files Browse the repository at this point in the history
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
  • Loading branch information
georgehrke committed Aug 19, 2020
1 parent 5a81135 commit 586c281
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/components/Avatar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ export default {
},
computed: {
canDisplayUserStatus() {
return this.showUserStatus && this.hasStatus
return this.showUserStatus
&& this.hasStatus
&& ['online', 'away', 'dnd'].includes(this.userStatus.status)
},
getUserIdentifier() {
if (this.isDisplayNameDefined) {
Expand Down Expand Up @@ -570,9 +572,6 @@ export default {
@include iconfont('user-status-away');
color: #f4a331;
}
&--offline{
@include iconfont('user-status-invisible');
}
}
.popovermenu-wrapper {
Expand Down

0 comments on commit 586c281

Please sign in to comment.