2016-01-13 04:15:16 +08:00
|
|
|
Template.usersList.helpers({
|
|
|
|
getInfoNumberOfUsers() {
|
|
|
|
let numberUsers;
|
|
|
|
numberUsers = BBB.getNumberOfUsers();
|
|
|
|
if (numberUsers > 8) {
|
|
|
|
return `Users: ${numberUsers}`;
|
|
|
|
}
|
2016-01-15 13:46:41 +08:00
|
|
|
// do not display the label if there are just a few users
|
2016-01-13 04:15:16 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
Template.usersList.rendered = function() {
|
|
|
|
$('.userlistMenu').resizable({
|
|
|
|
handles: 'e',
|
|
|
|
maxWidth: 600,
|
|
|
|
minWidth: 200,
|
|
|
|
resize() {
|
|
|
|
return adjustChatInputHeight();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
Tracker.autorun(comp => {
|
|
|
|
setInSession('userListRenderedTime', TimeSync.serverTime());
|
|
|
|
if (getInSession('userListRenderedTime') !== void 0) {
|
|
|
|
return comp.stop();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
if (isPhone()) {
|
|
|
|
return $('.userlistMenu').addClass('hiddenInLandscape');
|
|
|
|
}
|
|
|
|
};
|