|
@@ -3,8 +3,6 @@
|
3
|
3
|
import React from 'react';
|
4
|
4
|
import { connect } from 'react-redux';
|
5
|
5
|
|
6
|
|
-import { Conference } from '../../conference';
|
7
|
|
-
|
8
|
6
|
import { AbstractWelcomePage, mapStateToProps } from './AbstractWelcomePage';
|
9
|
7
|
|
10
|
8
|
/**
|
|
@@ -128,19 +126,6 @@ class WelcomePage extends AbstractWelcomePage {
|
128
|
126
|
});
|
129
|
127
|
}
|
130
|
128
|
|
131
|
|
- /**
|
132
|
|
- * Overrides the super in order to prevent the dispatching of the Redux
|
133
|
|
- * action SET_ROOM.
|
134
|
|
- *
|
135
|
|
- * @override
|
136
|
|
- * @protected
|
137
|
|
- * @returns {null}
|
138
|
|
- */
|
139
|
|
- _onJoin() {
|
140
|
|
- // Don't call the super implementation and thus prevent the dispatching
|
141
|
|
- // of the Redux action SET_ROOM.
|
142
|
|
- }
|
143
|
|
-
|
144
|
129
|
/**
|
145
|
130
|
* Handles 'keydown' event to initiate joining the room when the
|
146
|
131
|
* 'Enter/Return' button is pressed.
|
|
@@ -365,33 +350,6 @@ class WelcomePage extends AbstractWelcomePage {
|
365
|
350
|
this._updateRoomname();
|
366
|
351
|
}
|
367
|
352
|
|
368
|
|
- /**
|
369
|
|
- * Event handler for changing room name input from web.
|
370
|
|
- *
|
371
|
|
- * @inheritdoc
|
372
|
|
- * @override
|
373
|
|
- * @protected
|
374
|
|
- */
|
375
|
|
- _onRoomChange() {
|
376
|
|
- super._onRoomChange(this.roomNameInput.value);
|
377
|
|
- }
|
378
|
|
-
|
379
|
|
- /**
|
380
|
|
- * Handles 'keydown' event and initiate joining the room if 'return' button
|
381
|
|
- * was pressed.
|
382
|
|
- *
|
383
|
|
- * @param {Event} event - Key down event object.
|
384
|
|
- * @returns {void}
|
385
|
|
- * @private
|
386
|
|
- */
|
387
|
|
- _onKeyDown(event) {
|
388
|
|
- const RETURN_BUTTON_CODE = 13;
|
389
|
|
-
|
390
|
|
- if (event.keyCode === RETURN_BUTTON_CODE) {
|
391
|
|
- this._onJoin();
|
392
|
|
- }
|
393
|
|
- }
|
394
|
|
-
|
395
|
353
|
/**
|
396
|
354
|
* Renders the main part of this WelcomePage.
|
397
|
355
|
*
|