瀏覽代碼

Merge pull request #8293 from jitsi/tavram/update-jaas-rec

fix(jaas) update recording label and hide option for jaas users
master
Avram Tudor 4 年之前
父節點
當前提交
8d813a499c
No account linked to committer's email address
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 1
    0
      lang/main.json
  2. 5
    2
      react/features/recording/components/Recording/StartRecordingDialogContent.js

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

601
         "pending": "Preparing to record the meeting...",
601
         "pending": "Preparing to record the meeting...",
602
         "rec": "REC",
602
         "rec": "REC",
603
         "serviceDescription": "Your recording will be saved by the recording service",
603
         "serviceDescription": "Your recording will be saved by the recording service",
604
+        "serviceDescriptionCloud": "Cloud recording",
604
         "serviceName": "Recording service",
605
         "serviceName": "Recording service",
605
         "signIn": "Sign in",
606
         "signIn": "Sign in",
606
         "signOut": "Sign out",
607
         "signOut": "Sign out",

+ 5
- 2
react/features/recording/components/Recording/StartRecordingDialogContent.js 查看文件

162
      * @returns {React$Component}
162
      * @returns {React$Component}
163
      */
163
      */
164
     _renderFileSharingContent() {
164
     _renderFileSharingContent() {
165
-        if (!this.props.fileRecordingsServiceSharingEnabled) {
165
+        const { fileRecordingsServiceSharingEnabled, isVpaas } = this.props;
166
+
167
+        if (!fileRecordingsServiceSharingEnabled || isVpaas) {
166
             return null;
168
             return null;
167
         }
169
         }
168
 
170
 
247
                 ) : null;
249
                 ) : null;
248
 
250
 
249
         const icon = isVpaas ? ICON_SHARE : JITSI_LOGO;
251
         const icon = isVpaas ? ICON_SHARE : JITSI_LOGO;
252
+        const label = isVpaas ? t('recording.serviceDescriptionCloud') : t('recording.serviceDescription');
250
 
253
 
251
         return (
254
         return (
252
             <Container
255
             <Container
265
                         ..._dialogStyles.text,
268
                         ..._dialogStyles.text,
266
                         ...styles.title
269
                         ...styles.title
267
                     }}>
270
                     }}>
268
-                    { t('recording.serviceDescription') }
271
+                    { label }
269
                 </Text>
272
                 </Text>
270
                 { switchContent }
273
                 { switchContent }
271
             </Container>
274
             </Container>

Loading…
取消
儲存