|
@@ -17,6 +17,11 @@ interface IProps extends WithTranslation {
|
17
|
17
|
*/
|
18
|
18
|
_alternativeCancelText?: boolean;
|
19
|
19
|
|
|
20
|
+ /**
|
|
21
|
+ * Whether to hide the login button.
|
|
22
|
+ */
|
|
23
|
+ _hideLoginButton?: boolean;
|
|
24
|
+
|
20
|
25
|
/**
|
21
|
26
|
* Redux store dispatch method.
|
22
|
27
|
*/
|
|
@@ -80,12 +85,13 @@ class WaitForOwnerDialog extends PureComponent<IProps> {
|
80
|
85
|
this.props._alternativeCancelText ? 'dialog.WaitingForHostButton' : 'dialog.Cancel' }}
|
81
|
86
|
disableBackdropClose = { true }
|
82
|
87
|
hideCloseButton = { true }
|
83
|
|
- ok = {{ translationKey: 'dialog.IamHost' }}
|
|
88
|
+ ok = { this.props._hideLoginButton ? { hidden: true,
|
|
89
|
+ disabled: true } : { translationKey: 'dialog.IamHost' } }
|
84
|
90
|
onCancel = { this._onCancelWaitForOwner }
|
85
|
91
|
onSubmit = { this._onIAmHost }
|
86
|
92
|
titleKey = { t('dialog.WaitingForHostTitle') }>
|
87
|
93
|
<span>
|
88
|
|
- { t('dialog.WaitForHostMsg') }
|
|
94
|
+ { this.props._hideLoginButton ? t('dialog.WaitForHostNoAuthMsg') : t('dialog.WaitForHostMsg') }
|
89
|
95
|
</span>
|
90
|
96
|
</Dialog>
|
91
|
97
|
);
|
|
@@ -102,9 +108,11 @@ class WaitForOwnerDialog extends PureComponent<IProps> {
|
102
|
108
|
*/
|
103
|
109
|
function mapStateToProps(state: IReduxState) {
|
104
|
110
|
const { membersOnly, lobbyWaitingForHost } = state['features/base/conference'];
|
|
111
|
+ const { hideLoginButton } = state['features/base/config'];
|
105
|
112
|
|
106
|
113
|
return {
|
107
|
|
- _alternativeCancelText: membersOnly && lobbyWaitingForHost
|
|
114
|
+ _alternativeCancelText: membersOnly && lobbyWaitingForHost,
|
|
115
|
+ _hideLoginButton: hideLoginButton
|
108
|
116
|
};
|
109
|
117
|
}
|
110
|
118
|
|