|
@@ -4,6 +4,7 @@ import InlineDialog from '@atlaskit/inline-dialog';
|
4
|
4
|
import React, { Component } from 'react';
|
5
|
5
|
|
6
|
6
|
import { getRoomName } from '../../base/conference';
|
|
7
|
+import { getToolbarButtons } from '../../base/config';
|
7
|
8
|
import { translate } from '../../base/i18n';
|
8
|
9
|
import { Icon, IconArrowDown, IconArrowUp, IconPhone, IconVolumeOff } from '../../base/icons';
|
9
|
10
|
import { isVideoMutedByUser } from '../../base/media';
|
|
@@ -127,6 +128,11 @@ type Props = {
|
127
|
128
|
* The JitsiLocalTrack to display.
|
128
|
129
|
*/
|
129
|
130
|
videoTrack: ?Object,
|
|
131
|
+
|
|
132
|
+ /**
|
|
133
|
+ * Array with the buttons which this Toolbox should display.
|
|
134
|
+ */
|
|
135
|
+ visibleButtons: Array<string>
|
130
|
136
|
};
|
131
|
137
|
|
132
|
138
|
type State = {
|
|
@@ -295,7 +301,8 @@ class Prejoin extends Component<Props, State> {
|
295
|
301
|
showConferenceInfo,
|
296
|
302
|
showJoinActions,
|
297
|
303
|
t,
|
298
|
|
- videoTrack
|
|
304
|
+ videoTrack,
|
|
305
|
+ visibleButtons
|
299
|
306
|
} = this.props;
|
300
|
307
|
|
301
|
308
|
const { _closeDialog, _onDropdownClose, _onJoinButtonClick, _onOptionsClick, _setName, _showDialog } = this;
|
|
@@ -310,7 +317,8 @@ class Prejoin extends Component<Props, State> {
|
310
|
317
|
skipPrejoinButton = { this._renderSkipPrejoinButton() }
|
311
|
318
|
title = { t('prejoin.joinMeeting') }
|
312
|
319
|
videoMuted = { !showCameraPreview }
|
313
|
|
- videoTrack = { videoTrack }>
|
|
320
|
+ videoTrack = { videoTrack }
|
|
321
|
+ visibleButtons = { visibleButtons }>
|
314
|
322
|
{showJoinActions && (
|
315
|
323
|
<div className = 'prejoin-input-area-container'>
|
316
|
324
|
<div className = 'prejoin-input-area'>
|
|
@@ -440,7 +448,8 @@ function mapStateToProps(state, ownProps): Object {
|
440
|
448
|
hasJoinByPhoneButton: isJoinByPhoneButtonVisible(state),
|
441
|
449
|
showCameraPreview: !isVideoMutedByUser(state),
|
442
|
450
|
showConferenceInfo,
|
443
|
|
- videoTrack: getLocalJitsiVideoTrack(state)
|
|
451
|
+ videoTrack: getLocalJitsiVideoTrack(state),
|
|
452
|
+ visibleButtons: getToolbarButtons(state)
|
444
|
453
|
};
|
445
|
454
|
}
|
446
|
455
|
|