|
@@ -21,7 +21,6 @@ import {
|
21
|
21
|
IconRaisedHand,
|
22
|
22
|
IconRec,
|
23
|
23
|
IconShareDesktop,
|
24
|
|
- IconShareDoc,
|
25
|
24
|
IconShareVideo
|
26
|
25
|
} from '../../../base/icons';
|
27
|
26
|
import {
|
|
@@ -34,7 +33,7 @@ import { OverflowMenuItem } from '../../../base/toolbox';
|
34
|
33
|
import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks';
|
35
|
34
|
import { VideoBlurButton } from '../../../blur';
|
36
|
35
|
import { ChatCounter, toggleChat } from '../../../chat';
|
37
|
|
-import { toggleDocument } from '../../../etherpad';
|
|
36
|
+import { SharedDocumentButton } from '../../../etherpad';
|
38
|
37
|
import { openFeedbackDialog } from '../../../feedback';
|
39
|
38
|
import {
|
40
|
39
|
beginAddPeople,
|
|
@@ -111,16 +110,6 @@ type Props = {
|
111
|
110
|
*/
|
112
|
111
|
_dialog: boolean,
|
113
|
112
|
|
114
|
|
- /**
|
115
|
|
- * Whether or not the local participant is currently editing a document.
|
116
|
|
- */
|
117
|
|
- _editingDocument: boolean,
|
118
|
|
-
|
119
|
|
- /**
|
120
|
|
- * Whether or not collaborative document editing is enabled.
|
121
|
|
- */
|
122
|
|
- _etherpadInitialized: boolean,
|
123
|
|
-
|
124
|
113
|
/**
|
125
|
114
|
* Whether or not call feedback can be sent.
|
126
|
115
|
*/
|
|
@@ -247,8 +236,6 @@ class Toolbox extends Component<Props, State> {
|
247
|
236
|
this._onToolbarOpenVideoQuality
|
248
|
237
|
= this._onToolbarOpenVideoQuality.bind(this);
|
249
|
238
|
this._onToolbarToggleChat = this._onToolbarToggleChat.bind(this);
|
250
|
|
- this._onToolbarToggleEtherpad
|
251
|
|
- = this._onToolbarToggleEtherpad.bind(this);
|
252
|
239
|
this._onToolbarToggleFullScreen
|
253
|
240
|
= this._onToolbarToggleFullScreen.bind(this);
|
254
|
241
|
this._onToolbarToggleProfile
|
|
@@ -424,16 +411,6 @@ class Toolbox extends Component<Props, State> {
|
424
|
411
|
this.props.dispatch(toggleChat());
|
425
|
412
|
}
|
426
|
413
|
|
427
|
|
- /**
|
428
|
|
- * Dispatches an action to show or hide document editing.
|
429
|
|
- *
|
430
|
|
- * @private
|
431
|
|
- * @returns {void}
|
432
|
|
- */
|
433
|
|
- _doToggleEtherpad() {
|
434
|
|
- this.props.dispatch(toggleDocument());
|
435
|
|
- }
|
436
|
|
-
|
437
|
414
|
/**
|
438
|
415
|
* Dispatches an action to toggle screensharing.
|
439
|
416
|
*
|
|
@@ -749,25 +726,6 @@ class Toolbox extends Component<Props, State> {
|
749
|
726
|
this._doToggleChat();
|
750
|
727
|
}
|
751
|
728
|
|
752
|
|
- _onToolbarToggleEtherpad: () => void;
|
753
|
|
-
|
754
|
|
- /**
|
755
|
|
- * Creates an analytics toolbar event and dispatches an action for toggling
|
756
|
|
- * the display of document editing.
|
757
|
|
- *
|
758
|
|
- * @private
|
759
|
|
- * @returns {void}
|
760
|
|
- */
|
761
|
|
- _onToolbarToggleEtherpad() {
|
762
|
|
- sendAnalytics(createToolbarEvent(
|
763
|
|
- 'toggle.etherpad',
|
764
|
|
- {
|
765
|
|
- enable: !this.props._editingDocument
|
766
|
|
- }));
|
767
|
|
-
|
768
|
|
- this._doToggleEtherpad();
|
769
|
|
- }
|
770
|
|
-
|
771
|
729
|
_onToolbarToggleFullScreen: () => void;
|
772
|
730
|
|
773
|
731
|
/**
|
|
@@ -960,8 +918,6 @@ class Toolbox extends Component<Props, State> {
|
960
|
918
|
*/
|
961
|
919
|
_renderOverflowMenuContent() {
|
962
|
920
|
const {
|
963
|
|
- _editingDocument,
|
964
|
|
- _etherpadInitialized,
|
965
|
921
|
_feedbackConfigured,
|
966
|
922
|
_fullScreen,
|
967
|
923
|
_screensharing,
|
|
@@ -1007,16 +963,9 @@ class Toolbox extends Component<Props, State> {
|
1007
|
963
|
? t('toolbar.stopSharedVideo')
|
1008
|
964
|
: t('toolbar.sharedvideo') } />,
|
1009
|
965
|
this._shouldShowButton('etherpad')
|
1010
|
|
- && _etherpadInitialized
|
1011
|
|
- && <OverflowMenuItem
|
1012
|
|
- accessibilityLabel =
|
1013
|
|
- { t('toolbar.accessibilityLabel.document') }
|
1014
|
|
- icon = { IconShareDoc }
|
|
966
|
+ && <SharedDocumentButton
|
1015
|
967
|
key = 'etherpad'
|
1016
|
|
- onClick = { this._onToolbarToggleEtherpad }
|
1017
|
|
- text = { _editingDocument
|
1018
|
|
- ? t('toolbar.documentClose')
|
1019
|
|
- : t('toolbar.documentOpen') } />,
|
|
968
|
+ showLabel = { true } />,
|
1020
|
969
|
<VideoBlurButton
|
1021
|
970
|
key = 'videobackgroundblur'
|
1022
|
971
|
showLabel = { true }
|
|
@@ -1365,8 +1314,6 @@ function _mapStateToProps(state) {
|
1365
|
1314
|
_desktopSharingEnabled: desktopSharingEnabled,
|
1366
|
1315
|
_desktopSharingDisabledTooltipKey: desktopSharingDisabledTooltipKey,
|
1367
|
1316
|
_dialog: Boolean(state['features/base/dialog'].component),
|
1368
|
|
- _editingDocument: Boolean(state['features/etherpad'].editing),
|
1369
|
|
- _etherpadInitialized: Boolean(state['features/etherpad'].initialized),
|
1370
|
1317
|
_feedbackConfigured: Boolean(callStatsID),
|
1371
|
1318
|
_hideInviteButton:
|
1372
|
1319
|
iAmRecorder || (!addPeopleEnabled && !dialOutEnabled),
|