|
|
@@ -45,7 +45,6 @@ class RoomLockPrompt extends Component {
|
|
45
|
45
|
* @returns {ReactElement}
|
|
46
|
46
|
*/
|
|
47
|
47
|
render() {
|
|
48
|
|
-
|
|
49
|
48
|
return (
|
|
50
|
49
|
<Dialog
|
|
51
|
50
|
bodyKey = 'dialog.passwordLabel'
|
|
|
@@ -59,7 +58,7 @@ class RoomLockPrompt extends Component {
|
|
59
|
58
|
* Notifies this prompt that it has been dismissed by cancel.
|
|
60
|
59
|
*
|
|
61
|
60
|
* @private
|
|
62
|
|
- * @returns {boolean} whether to hide the dialog
|
|
|
61
|
+ * @returns {boolean} True to hide this dialog/prompt; otherwise, false.
|
|
63
|
62
|
*/
|
|
64
|
63
|
_onCancel() {
|
|
65
|
64
|
// An undefined password is understood to cancel the request to lock the
|
|
|
@@ -73,15 +72,14 @@ class RoomLockPrompt extends Component {
|
|
73
|
72
|
*
|
|
74
|
73
|
* @param {string} value - The submitted value.
|
|
75
|
74
|
* @private
|
|
76
|
|
- * @returns {boolean} returns false, we do not want to hide dialog as this
|
|
77
|
|
- * will be handled inside endRoomLockRequest after setting password is
|
|
78
|
|
- * resolved.
|
|
|
75
|
+ * @returns {boolean} False because we do not want to hide this
|
|
|
76
|
+ * dialog/prompt as the hiding will be handled inside endRoomLockRequest
|
|
|
77
|
+ * after setting the password is resolved.
|
|
79
|
78
|
*/
|
|
80
|
79
|
_onSubmit(value) {
|
|
81
|
80
|
this.props.dispatch(endRoomLockRequest(this.props.conference, value));
|
|
82
|
81
|
|
|
83
|
|
- // do not hide
|
|
84
|
|
- return false;
|
|
|
82
|
+ return false; // Do not hide.
|
|
85
|
83
|
}
|
|
86
|
84
|
}
|
|
87
|
85
|
|