Avoid record warning if record button is disabled

This commit is contained in:
Pedro Beschorner Marin 2017-02-06 16:29:09 +00:00
parent 8dfd4c9413
commit 9fe76ce2d8

View File

@ -170,7 +170,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
if (firstAudioJoin && this.visible && !this.selected
&& layoutOptions.showRecordingNotification
&& UserManager.getInstance().getConference().amIModerator()
&& MeetingModel.getInstance().meeting.allowStartStopRecording) {
&& MeetingModel.getInstance().meeting.allowStartStopRecording
&& this.enabled) {
var alert:Alert = Alert.show(ResourceUtil.getInstance().getString("bbb.mainToolbar.recordBtn..notification.message1") + "\n\n" + ResourceUtil.getInstance().getString("bbb.mainToolbar.recordBtn..notification.message2"), ResourceUtil.getInstance().getString("bbb.mainToolbar.recordBtn..notification.title"), Alert.OK, this);
// we need to set transparency duration to avoid the blur effect when two alerts are displayed sequentially
alert.setStyle("modalTransparencyDuration", 250);