Added new option "enableBreakoutRooms" to users module.

This commit is contained in:
Ghazi Triki 2016-06-02 21:05:18 +01:00
parent 36c36d4291
commit 3d21b291cb
3 changed files with 8 additions and 1 deletions

View File

@ -38,6 +38,7 @@
allowKickUser="true"
enableEmojiStatus="true"
enableSettingsButton="true"
enableBreakoutRooms="true"
baseTabIndex="301"
/>

View File

@ -37,6 +37,9 @@ package org.bigbluebutton.modules.users.model
[Bindable]
public var enableEmojiStatus:Boolean = true;
[Bindable]
public var enableBreakoutRooms:Boolean = true;
[Bindable]
public var enableSettingsButton:Boolean = true;
@ -57,6 +60,9 @@ package org.bigbluebutton.modules.users.model
if (vxml.@enableEmojiStatus != undefined) {
enableEmojiStatus = (vxml.@enableEmojiStatus.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@enableBreakoutRooms != undefined) {
enableBreakoutRooms = (vxml.@enableBreakoutRooms.toString().toUpperCase() == "TRUE") ? true : false;
}
if (vxml.@enableSettingsButton != undefined) {
enableSettingsButton = (vxml.@enableSettingsButton.toString().toUpperCase() == "TRUE") ? true : false;
}

View File

@ -265,7 +265,7 @@
paramsMenuData.push({label: ResourceUtil.getInstance().getString('bbb.users.settings.unmuteAll'), icon: images.audio, handler: muteAll});
paramsMenuData.push({label: ResourceUtil.getInstance().getString('bbb.users.settings.lockSettings'), icon: images.lock_open, handler: lockSettings});
if (breakoutRoomsList.length == 0 && amIModerator && !UserManager.getInstance().getConference().isBreakout) {
if (partOptions.enableBreakoutRooms && breakoutRoomsList.length == 0 && amIModerator && !UserManager.getInstance().getConference().isBreakout) {
paramsMenuData.push({label: ResourceUtil.getInstance().getString('bbb.users.settings.breakoutRooms'), handler: breakoutRooms});
}