- cheange text to warn user that meeting is inactive

This commit is contained in:
Richard Alam 2018-06-27 12:59:33 -07:00
parent 0356721627
commit c92635b209
2 changed files with 8 additions and 3 deletions

View File

@ -91,7 +91,7 @@ bbb.webrtcWarning.connection.dropped = WebRTC connection dropped
bbb.webrtcWarning.connection.reconnecting = Attempting to reconnect
bbb.webrtcWarning.connection.reestablished = WebRTC connection re-established
bbb.inactivityWarning.title = No activity detected
bbb.inactivityWarning.message = This meeting seems to be inactive. Automatically shutting it down...
bbb.inactivityWarning.message = This meeting seems to be inactive. Ending meeting in {0} seconds.
bbb.shuttingDown.message = This meeting is being closed due to inactivity
bbb.inactivityWarning.cancel = Cancel
bbb.userInactivityAudit.title = User activity check

View File

@ -71,6 +71,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function tick(e:TimerEvent):void {
if (duration > 0) {
cancelButton.label = genCancelButtonLabel(duration);
warningMessage.text = genWarningMessageText(duration);
duration--;
} else {
tickTimer.stop();
@ -80,8 +81,12 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
}
}
private function genWarningMessageText(timeLeft:Number):String {
return ResourceUtil.getInstance().getString('bbb.inactivityWarning.message', [timeLeft.toString()]);
}
private function genCancelButtonLabel(timeLeft:Number):String {
return cancelButtonLabel + " (" + timeLeft.toString() + ")";
return cancelButtonLabel; // + " (" + timeLeft.toString() + ")";
}
private function meetingIsActiveFeedback(e:BBBEvent):void {
@ -97,7 +102,7 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
]]>
</fx:Script>
<mx:VBox width="100%" height="100%" paddingBottom="5" paddingLeft="5" paddingRight="5" paddingTop="5" horizontalAlign="center" verticalAlign="middle">
<mx:Text id="warningMessage" selectable="false" text="{ResourceUtil.getInstance().getString('bbb.inactivityWarning.message')}" styleName="inactivityWarningTextStyle"/>
<mx:Text id="warningMessage" selectable="false" text="{}" styleName="inactivityWarningTextStyle"/>
<mx:Button id="cancelButton" click="cancelButtonClicked()" visible="false" styleName="inactivityWarningWindowCancelButtonStyle"/>
</mx:VBox>
</mx:Panel>