|
|
@@ -65,6 +65,11 @@ class Toolbox extends Component {
|
|
65
|
65
|
*/
|
|
66
|
66
|
_audioOnly: PropTypes.bool,
|
|
67
|
67
|
|
|
|
68
|
+ /**
|
|
|
69
|
+ * Flag showing whether the toolbox is enabled or not.
|
|
|
70
|
+ */
|
|
|
71
|
+ _enabled: PropTypes.bool,
|
|
|
72
|
+
|
|
68
|
73
|
/**
|
|
69
|
74
|
* Flag showing whether room is locked.
|
|
70
|
75
|
*/
|
|
|
@@ -130,6 +135,10 @@ class Toolbox extends Component {
|
|
130
|
135
|
* @returns {ReactElement}
|
|
131
|
136
|
*/
|
|
132
|
137
|
render() {
|
|
|
138
|
+ if (!this.props._enabled) {
|
|
|
139
|
+ return null;
|
|
|
140
|
+ }
|
|
|
141
|
+
|
|
133
|
142
|
const toolboxStyle
|
|
134
|
143
|
= isNarrowAspectRatio(this)
|
|
135
|
144
|
? styles.toolboxNarrow
|
|
|
@@ -441,6 +450,7 @@ function _mapDispatchToProps(dispatch) {
|
|
441
|
450
|
*/
|
|
442
|
451
|
function _mapStateToProps(state) {
|
|
443
|
452
|
const conference = state['features/base/conference'];
|
|
|
453
|
+ const { enabled } = state['features/toolbox'];
|
|
444
|
454
|
|
|
445
|
455
|
return {
|
|
446
|
456
|
...abstractMapStateToProps(state),
|
|
|
@@ -454,6 +464,14 @@ function _mapStateToProps(state) {
|
|
454
|
464
|
*/
|
|
455
|
465
|
_audioOnly: Boolean(conference.audioOnly),
|
|
456
|
466
|
|
|
|
467
|
+ /**
|
|
|
468
|
+ * The indicator which determines whether the toolbox is enabled or not.
|
|
|
469
|
+ *
|
|
|
470
|
+ * @private
|
|
|
471
|
+ * @type {boolean}
|
|
|
472
|
+ */
|
|
|
473
|
+ _enabled: enabled,
|
|
|
474
|
+
|
|
457
|
475
|
/**
|
|
458
|
476
|
* The indicator which determines whether the conference is
|
|
459
|
477
|
* locked/password-protected.
|