bigbluebutton-Github/bigbluebutton-html5/app/client/views/users/user_list.js
2016-01-15 00:46:41 -05:00

31 lines
735 B
JavaScript
Executable File

Template.usersList.helpers({
getInfoNumberOfUsers() {
let numberUsers;
numberUsers = BBB.getNumberOfUsers();
if (numberUsers > 8) {
return `Users: ${numberUsers}`;
}
// do not display the label if there are just a few users
}
});
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');
}
};