Skip to content

Commit

Permalink
Add room type identifier to room list header
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Schreiber committed Jul 18, 2017
1 parent 712dbc4 commit fa203fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-ui-sidenav/client/roomList.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{{else}}
{{#if isActiveFavorite}}
{{#with rooms}}
<h3 class="room-type {{unreadClass ..}}">
<h3 class="room-type {{unreadClass ..}} {{roomType ..}}">
{{_ ../label}} <span class="room-count-small">({{count}})</span>
</h3>
<ul>
Expand Down
4 changes: 4 additions & 0 deletions packages/rocketchat-ui-sidenav/client/roomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ Template.roomList.helpers({

hasMoreGroupsButton(room) {
return room.identifier === 'p';
},

roomType(room) {
return room.identifier;
}
});

Expand Down

0 comments on commit fa203fd

Please sign in to comment.