Просмотр исходного кода

feat(deployment-urls): Whitelist deploymentUrls; remove JaaS restriction

master
Horatiu Muresan 3 лет назад
Родитель
Сommit
d49c86bd5f
Аккаунт пользователя с таким Email не найден

+ 1
- 0
react/features/base/config/configWhitelist.js Просмотреть файл

@@ -83,6 +83,7 @@ export default [
83 83
     'debugAudioLevels',
84 84
     'defaultLocalDisplayName',
85 85
     'defaultRemoteDisplayName',
86
+    'deploymentUrls',
86 87
     'desktopSharingFrameRate',
87 88
     'desktopSharingSources',
88 89
     'disable1On1Mode',

+ 1
- 2
react/features/toolbox/components/DownloadButton.js Просмотреть файл

@@ -6,7 +6,6 @@ import { IconDownload } from '../../base/icons';
6 6
 import { connect } from '../../base/redux';
7 7
 import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
8 8
 import { openURLInBrowser } from '../../base/util';
9
-import { isVpaasMeeting } from '../../jaas/functions';
10 9
 
11 10
 type Props = AbstractButtonProps & {
12 11
 
@@ -48,7 +47,7 @@ class DownloadButton extends AbstractButton<Props, *> {
48 47
  */
49 48
 function _mapStateToProps(state: Object) {
50 49
     const { downloadAppsUrl } = state['features/base/config'].deploymentUrls || {};
51
-    const visible = typeof downloadAppsUrl === 'string' && !isVpaasMeeting(state);
50
+    const visible = typeof downloadAppsUrl === 'string';
52 51
 
53 52
     return {
54 53
         _downloadAppsUrl: downloadAppsUrl,

+ 1
- 2
react/features/toolbox/components/HelpButton.js Просмотреть файл

@@ -7,7 +7,6 @@ import { IconHelp } from '../../base/icons';
7 7
 import { connect } from '../../base/redux';
8 8
 import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
9 9
 import { openURLInBrowser } from '../../base/util';
10
-import { isVpaasMeeting } from '../../jaas/functions';
11 10
 
12 11
 type Props = AbstractButtonProps & {
13 12
 
@@ -50,7 +49,7 @@ class HelpButton extends AbstractButton<Props, *> {
50 49
 function _mapStateToProps(state: Object) {
51 50
     const { userDocumentationURL } = state['features/base/config'].deploymentUrls || {};
52 51
     const enabled = getFeatureFlag(state, HELP_BUTTON_ENABLED, true);
53
-    const visible = typeof userDocumentationURL === 'string' && enabled && !isVpaasMeeting(state);
52
+    const visible = typeof userDocumentationURL === 'string' && enabled;
54 53
 
55 54
     return {
56 55
         _userDocumentationURL: userDocumentationURL,

Загрузка…
Отмена
Сохранить