Skip to content

Commit

Permalink
Add explanation to the enable video button tooltip about reconnection
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
  • Loading branch information
danxuliu authored and Backportbot committed May 16, 2019
1 parent 04449b3 commit a66c6a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion js/views/mediacontrolsview.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
} else {
this._webrtc.pauseVideo();

this.getUI('videoButton').attr('data-original-title', t('spreed', 'Enable video (v)'))
this.getUI('videoButton').attr('data-original-title', this._getEnableVideoButtonTitle())
.addClass('local-video-disabled video-disabled icon-video-off')
.removeClass('icon-video');
this.getUI('audioButton').addClass('local-video-disabled');
Expand All @@ -195,6 +195,14 @@
return true;
},

_getEnableVideoButtonTitle: function() {
if (!this._app.signaling || this._app.signaling.getSendVideoIfAvailable()) {
return t('spreed', 'Enable video (v)');
}

return t('spreed', 'Enable video (v) - Your connection will be briefly interrupted when enabling the video for the first time');
},

/**
* Sets the video as available or not available.
*
Expand Down

0 comments on commit a66c6a9

Please sign in to comment.