Skip to content

Commit

Permalink
Fixes display of custom status on the room leader information panel
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-lehnen-rc committed Jul 10, 2019
1 parent da42a95 commit c252db5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/ui/client/views/app/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<div class="leader-name">{{name}}</div>
<div class="leader-status userStatus">
<span class="color-ball status-bg-{{status}}"></span>
<span class="status-text leader-status-text">{{_ statusDisplay}}</span>
<span class="status-text leader-status-text">{{ statusDisplay}}</span>
</div>
<a class="chat-now" href="{{chatNowLink}}">{{_ "Chat_Now"}}</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/ui/client/views/app/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Template.room.helpers({
...roles.u,
name: settings.get('UI_Use_Real_Name') ? roles.u.name || roles.u.username : roles.u.username,
status: leader.status || 'offline',
statusDisplay: leader.statusText || leader.status || 'offline',
statusDisplay: leader.statusText || t(leader.status || 'offline'),
};
}
},
Expand Down

0 comments on commit c252db5

Please sign in to comment.