浏览代码

feat(web) add config to hide login button on WaitForOwnerDialog

factor2
HannesOberreiter 1年前
父节点
当前提交
76e3608baf
没有帐户链接到提交者的电子邮件

+ 3
- 0
config.js 查看文件

1790
     //         collectionInterval?: number;
1790
     //         collectionInterval?: number;
1791
     //         logGetStats?: boolean;
1791
     //         logGetStats?: boolean;
1792
     // },
1792
     // },
1793
+
1794
+    // Hide login button on auth dialog, you may want to enable this if you are using JWT tokens to authenticate users
1795
+    // hideLoginButton: true,
1793
 };
1796
 };
1794
 
1797
 
1795
 // Temporary backwards compatibility with old mobile clients.
1798
 // Temporary backwards compatibility with old mobile clients.

+ 1
- 0
lang/main-de.json 查看文件

264
         "Share": "Teilen",
264
         "Share": "Teilen",
265
         "Submit": "OK",
265
         "Submit": "OK",
266
         "WaitForHostMsg": "Die Konferenz wurde noch nicht gestartet. Falls Sie die Konferenz leiten, authentifizieren Sie sich bitte. Warten Sie andernfalls, bis die Konferenz gestartet wird.",
266
         "WaitForHostMsg": "Die Konferenz wurde noch nicht gestartet. Falls Sie die Konferenz leiten, authentifizieren Sie sich bitte. Warten Sie andernfalls, bis die Konferenz gestartet wird.",
267
+        "WaitForHostNoAuthMsg": "Die Konferenz wurde noch nicht gestartet. Bitte warten Sie, bis die Konferenz gestartet wird.",
267
         "WaitingForHostButton": "Auf Moderation warten",
268
         "WaitingForHostButton": "Auf Moderation warten",
268
         "WaitingForHostTitle": "Warten auf den Beginn der Konferenz …",
269
         "WaitingForHostTitle": "Warten auf den Beginn der Konferenz …",
269
         "Yes": "Ja",
270
         "Yes": "Ja",

+ 1
- 0
lang/main-hu.json 查看文件

184
         "Share": "Megosztás",
184
         "Share": "Megosztás",
185
         "Submit": "Elküldés",
185
         "Submit": "Elküldés",
186
         "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.",
186
         "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.",
187
+        "WaitForHostNoAuthMsg": "A konferencia még nem kezdődött el, mert nincs elérhető moderátor. Kérlek várj.",
187
         "WaitingForHost": "Várakozás a házigazdára…",
188
         "WaitingForHost": "Várakozás a házigazdára…",
188
         "Yes": "Igen",
189
         "Yes": "Igen",
189
         "accessibilityLabel": {
190
         "accessibilityLabel": {

+ 1
- 0
lang/main-vi.json 查看文件

263
         "Share": "Chia sẻ",
263
         "Share": "Chia sẻ",
264
         "Submit": "Đăng ký",
264
         "Submit": "Đăng ký",
265
         "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.",
265
         "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.",
266
+        "WaitingForHost": "Đang đợi quản trị viên...",
266
         "WaitingForHostButton": "Chờ người điều hành",
267
         "WaitingForHostButton": "Chờ người điều hành",
267
         "WaitingForHostTitle": "Chờ người điều hành ...",
268
         "WaitingForHostTitle": "Chờ người điều hành ...",
268
         "Yes": "Có",
269
         "Yes": "Có",

+ 1
- 0
lang/main.json 查看文件

264
         "Share": "Share",
264
         "Share": "Share",
265
         "Submit": "Submit",
265
         "Submit": "Submit",
266
         "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.",
266
         "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.",
267
+        "WaitForHostNoAuthMsg": "The conference has not yet started because no moderators have yet arrived. Please wait.",
267
         "WaitingForHostButton": "Wait for moderator",
268
         "WaitingForHostButton": "Wait for moderator",
268
         "WaitingForHostTitle": "Waiting for a moderator...",
269
         "WaitingForHostTitle": "Waiting for a moderator...",
269
         "Yes": "Yes",
270
         "Yes": "Yes",

+ 11
- 3
react/features/authentication/components/web/WaitForOwnerDialog.tsx 查看文件

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

+ 1
- 0
react/features/base/config/configType.ts 查看文件

396
     hideDominantSpeakerBadge?: boolean;
396
     hideDominantSpeakerBadge?: boolean;
397
     hideEmailInSettings?: boolean;
397
     hideEmailInSettings?: boolean;
398
     hideLobbyButton?: boolean;
398
     hideLobbyButton?: boolean;
399
+    hideLoginButton?: boolean;
399
     hideParticipantsStats?: boolean;
400
     hideParticipantsStats?: boolean;
400
     hideRecordingLabel?: boolean;
401
     hideRecordingLabel?: boolean;
401
     hosts?: {
402
     hosts?: {

正在加载...
取消
保存