diff --git a/config.js b/config.js index f347b27fec..1e0921880d 100644 --- a/config.js +++ b/config.js @@ -1790,6 +1790,9 @@ var config = { // collectionInterval?: number; // logGetStats?: boolean; // }, + + // Hide login button on auth dialog, you may want to enable this if you are using JWT tokens to authenticate users + // hideLoginButton: true, }; // Temporary backwards compatibility with old mobile clients. diff --git a/lang/main-de.json b/lang/main-de.json index e6b38937d1..65cd436d00 100644 --- a/lang/main-de.json +++ b/lang/main-de.json @@ -264,6 +264,7 @@ "Share": "Teilen", "Submit": "OK", "WaitForHostMsg": "Die Konferenz wurde noch nicht gestartet. Falls Sie die Konferenz leiten, authentifizieren Sie sich bitte. Warten Sie andernfalls, bis die Konferenz gestartet wird.", + "WaitForHostNoAuthMsg": "Die Konferenz wurde noch nicht gestartet. Bitte warten Sie, bis die Konferenz gestartet wird.", "WaitingForHostButton": "Auf Moderation warten", "WaitingForHostTitle": "Warten auf den Beginn der Konferenz …", "Yes": "Ja", diff --git a/lang/main-hu.json b/lang/main-hu.json index c818342ae7..cb4ebc2b75 100644 --- a/lang/main-hu.json +++ b/lang/main-hu.json @@ -184,6 +184,7 @@ "Share": "Megosztás", "Submit": "Elküldés", "WaitForHostMsg": "A konferencia még nem kezdődött meg. Ha Ön a házigazda, akkor hitelesítse magát. Ellenkező esetben, kérjük várjon a házigazda érkezésére.", + "WaitForHostNoAuthMsg": "A konferencia még nem kezdődött el, mert nincs elérhető moderátor. Kérlek várj.", "WaitingForHost": "Várakozás a házigazdára…", "Yes": "Igen", "accessibilityLabel": { diff --git a/lang/main-vi.json b/lang/main-vi.json index 0b39d49e14..d1d30472cd 100644 --- a/lang/main-vi.json +++ b/lang/main-vi.json @@ -263,6 +263,7 @@ "Share": "Chia sẻ", "Submit": "Đăng ký", "WaitForHostMsg": "Cuộc họp chưa được bắt đầu. Nếu bạn là quản trị viên vui lòng xác thực. Nếu không, vui lòng đợi quản trị viên.", + "WaitingForHost": "Đang đợi quản trị viên...", "WaitingForHostButton": "Chờ người điều hành", "WaitingForHostTitle": "Chờ người điều hành ...", "Yes": "Có", diff --git a/lang/main.json b/lang/main.json index ae651b54e0..f17db57047 100644 --- a/lang/main.json +++ b/lang/main.json @@ -264,6 +264,7 @@ "Share": "Share", "Submit": "Submit", "WaitForHostMsg": "The conference has not yet started because no moderators have yet arrived. If you'd like to become a moderator please log-in. Otherwise, please wait.", + "WaitForHostNoAuthMsg": "The conference has not yet started because no moderators have yet arrived. Please wait.", "WaitingForHostButton": "Wait for moderator", "WaitingForHostTitle": "Waiting for a moderator...", "Yes": "Yes", diff --git a/react/features/authentication/components/web/WaitForOwnerDialog.tsx b/react/features/authentication/components/web/WaitForOwnerDialog.tsx index c47a7fbf2a..9247293a0d 100644 --- a/react/features/authentication/components/web/WaitForOwnerDialog.tsx +++ b/react/features/authentication/components/web/WaitForOwnerDialog.tsx @@ -17,6 +17,11 @@ interface IProps extends WithTranslation { */ _alternativeCancelText?: boolean; + /** + * Whether to hide the login button. + */ + _hideLoginButton?: boolean; + /** * Redux store dispatch method. */ @@ -80,12 +85,13 @@ class WaitForOwnerDialog extends PureComponent { this.props._alternativeCancelText ? 'dialog.WaitingForHostButton' : 'dialog.Cancel' }} disableBackdropClose = { true } hideCloseButton = { true } - ok = {{ translationKey: 'dialog.IamHost' }} + ok = { this.props._hideLoginButton ? { hidden: true, + disabled: true } : { translationKey: 'dialog.IamHost' } } onCancel = { this._onCancelWaitForOwner } onSubmit = { this._onIAmHost } titleKey = { t('dialog.WaitingForHostTitle') }> - { t('dialog.WaitForHostMsg') } + { this.props._hideLoginButton ? t('dialog.WaitForHostNoAuthMsg') : t('dialog.WaitForHostMsg') } ); @@ -102,9 +108,11 @@ class WaitForOwnerDialog extends PureComponent { */ function mapStateToProps(state: IReduxState) { const { membersOnly, lobbyWaitingForHost } = state['features/base/conference']; + const { hideLoginButton } = state['features/base/config']; return { - _alternativeCancelText: membersOnly && lobbyWaitingForHost + _alternativeCancelText: membersOnly && lobbyWaitingForHost, + _hideLoginButton: hideLoginButton }; } diff --git a/react/features/base/config/configType.ts b/react/features/base/config/configType.ts index 63e64fe239..e70f5652f3 100644 --- a/react/features/base/config/configType.ts +++ b/react/features/base/config/configType.ts @@ -396,6 +396,7 @@ export interface IConfig { hideDominantSpeakerBadge?: boolean; hideEmailInSettings?: boolean; hideLobbyButton?: boolean; + hideLoginButton?: boolean; hideParticipantsStats?: boolean; hideRecordingLabel?: boolean; hosts?: {