Преглед на файлове

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

factor2
HannesOberreiter преди 1 година
родител
ревизия
76e3608baf
No account linked to committer's email address
променени са 7 файла, в които са добавени 19 реда и са изтрити 3 реда
  1. 3
    0
      config.js
  2. 1
    0
      lang/main-de.json
  3. 1
    0
      lang/main-hu.json
  4. 1
    0
      lang/main-vi.json
  5. 1
    0
      lang/main.json
  6. 11
    3
      react/features/authentication/components/web/WaitForOwnerDialog.tsx
  7. 1
    0
      react/features/base/config/configType.ts

+ 3
- 0
config.js Целия файл

@@ -1790,6 +1790,9 @@ var config = {
1790 1790
     //         collectionInterval?: number;
1791 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 1798
 // Temporary backwards compatibility with old mobile clients.

+ 1
- 0
lang/main-de.json Целия файл

@@ -264,6 +264,7 @@
264 264
         "Share": "Teilen",
265 265
         "Submit": "OK",
266 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 268
         "WaitingForHostButton": "Auf Moderation warten",
268 269
         "WaitingForHostTitle": "Warten auf den Beginn der Konferenz …",
269 270
         "Yes": "Ja",

+ 1
- 0
lang/main-hu.json Целия файл

@@ -184,6 +184,7 @@
184 184
         "Share": "Megosztás",
185 185
         "Submit": "Elküldés",
186 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 188
         "WaitingForHost": "Várakozás a házigazdára…",
188 189
         "Yes": "Igen",
189 190
         "accessibilityLabel": {

+ 1
- 0
lang/main-vi.json Целия файл

@@ -263,6 +263,7 @@
263 263
         "Share": "Chia sẻ",
264 264
         "Submit": "Đăng ký",
265 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 267
         "WaitingForHostButton": "Chờ người điều hành",
267 268
         "WaitingForHostTitle": "Chờ người điều hành ...",
268 269
         "Yes": "Có",

+ 1
- 0
lang/main.json Целия файл

@@ -264,6 +264,7 @@
264 264
         "Share": "Share",
265 265
         "Submit": "Submit",
266 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 268
         "WaitingForHostButton": "Wait for moderator",
268 269
         "WaitingForHostTitle": "Waiting for a moderator...",
269 270
         "Yes": "Yes",

+ 11
- 3
react/features/authentication/components/web/WaitForOwnerDialog.tsx Целия файл

@@ -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
 

+ 1
- 0
react/features/base/config/configType.ts Целия файл

@@ -396,6 +396,7 @@ export interface IConfig {
396 396
     hideDominantSpeakerBadge?: boolean;
397 397
     hideEmailInSettings?: boolean;
398 398
     hideLobbyButton?: boolean;
399
+    hideLoginButton?: boolean;
399 400
     hideParticipantsStats?: boolean;
400 401
     hideRecordingLabel?: boolean;
401 402
     hosts?: {

Loading…
Отказ
Запис