Fix ESLint warnings
JSDoc comments didn't follow the ESLint rule for properly formatted sentences. BTW, I'm not blind to the fact that PasswordRequiredPrompt and RoomLockPrompt participated in a birthing of source code through copy+paste. (If we do not copy+paste, we will not have to fix one and the same source code such as comments multiple times.)
This commit is contained in:
parent
589f77ef0e
commit
d37468975c
|
@ -45,7 +45,6 @@ class PasswordRequiredPrompt extends Component {
|
||||||
* @returns {ReactElement}
|
* @returns {ReactElement}
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
bodyKey = 'dialog.passwordLabel'
|
bodyKey = 'dialog.passwordLabel'
|
||||||
|
@ -59,7 +58,7 @@ class PasswordRequiredPrompt extends Component {
|
||||||
* Notifies this prompt that it has been dismissed by cancel.
|
* Notifies this prompt that it has been dismissed by cancel.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @returns {boolean} whether to hide dialog.
|
* @returns {boolean} True to hide this dialog/prompt; otherwise, false.
|
||||||
*/
|
*/
|
||||||
_onCancel() {
|
_onCancel() {
|
||||||
// XXX The user has canceled this prompt for a password so we are to
|
// XXX The user has canceled this prompt for a password so we are to
|
||||||
|
@ -75,7 +74,7 @@ class PasswordRequiredPrompt extends Component {
|
||||||
*
|
*
|
||||||
* @param {string} value - The submitted value.
|
* @param {string} value - The submitted value.
|
||||||
* @private
|
* @private
|
||||||
* @returns {boolean} whether to hide dialog.
|
* @returns {boolean} True to hide this dialog/prompt; otherwise, false.
|
||||||
*/
|
*/
|
||||||
_onSubmit(value) {
|
_onSubmit(value) {
|
||||||
const conference = this.props.conference;
|
const conference = this.props.conference;
|
||||||
|
|
|
@ -45,7 +45,6 @@ class RoomLockPrompt extends Component {
|
||||||
* @returns {ReactElement}
|
* @returns {ReactElement}
|
||||||
*/
|
*/
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
bodyKey = 'dialog.passwordLabel'
|
bodyKey = 'dialog.passwordLabel'
|
||||||
|
@ -59,7 +58,7 @@ class RoomLockPrompt extends Component {
|
||||||
* Notifies this prompt that it has been dismissed by cancel.
|
* Notifies this prompt that it has been dismissed by cancel.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @returns {boolean} whether to hide the dialog
|
* @returns {boolean} True to hide this dialog/prompt; otherwise, false.
|
||||||
*/
|
*/
|
||||||
_onCancel() {
|
_onCancel() {
|
||||||
// An undefined password is understood to cancel the request to lock the
|
// An undefined password is understood to cancel the request to lock the
|
||||||
|
@ -73,15 +72,14 @@ class RoomLockPrompt extends Component {
|
||||||
*
|
*
|
||||||
* @param {string} value - The submitted value.
|
* @param {string} value - The submitted value.
|
||||||
* @private
|
* @private
|
||||||
* @returns {boolean} returns false, we do not want to hide dialog as this
|
* @returns {boolean} False because we do not want to hide this
|
||||||
* will be handled inside endRoomLockRequest after setting password is
|
* dialog/prompt as the hiding will be handled inside endRoomLockRequest
|
||||||
* resolved.
|
* after setting the password is resolved.
|
||||||
*/
|
*/
|
||||||
_onSubmit(value) {
|
_onSubmit(value) {
|
||||||
this.props.dispatch(endRoomLockRequest(this.props.conference, value));
|
this.props.dispatch(endRoomLockRequest(this.props.conference, value));
|
||||||
|
|
||||||
// do not hide
|
return false; // Do not hide.
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue