소스 검색

fix(deploymentUrls): Disable help and download apps buttons for JaaS

j8
hmuresan 4 년 전
부모
커밋
a1a5d1e7f8
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    2
      react/features/toolbox/components/DownloadButton.js
  2. 2
    2
      react/features/toolbox/components/HelpButton.js

+ 2
- 2
react/features/toolbox/components/DownloadButton.js 파일 보기

6
 import { connect } from '../../base/redux';
6
 import { connect } from '../../base/redux';
7
 import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
7
 import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
8
 import { openURLInBrowser } from '../../base/util';
8
 import { openURLInBrowser } from '../../base/util';
9
-
9
+import { isVpaasMeeting } from '../../billing-counter/functions';
10
 
10
 
11
 type Props = AbstractButtonProps & {
11
 type Props = AbstractButtonProps & {
12
 
12
 
45
  */
45
  */
46
 function _mapStateToProps(state: Object) {
46
 function _mapStateToProps(state: Object) {
47
     const { downloadAppsUrl } = state['features/base/config'].deploymentUrls || {};
47
     const { downloadAppsUrl } = state['features/base/config'].deploymentUrls || {};
48
-    const visible = typeof downloadAppsUrl === 'string';
48
+    const visible = typeof downloadAppsUrl === 'string' && !isVpaasMeeting(state);
49
 
49
 
50
     return {
50
     return {
51
         _downloadAppsUrl: downloadAppsUrl,
51
         _downloadAppsUrl: downloadAppsUrl,

+ 2
- 2
react/features/toolbox/components/HelpButton.js 파일 보기

7
 import { connect } from '../../base/redux';
7
 import { connect } from '../../base/redux';
8
 import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
8
 import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
9
 import { openURLInBrowser } from '../../base/util';
9
 import { openURLInBrowser } from '../../base/util';
10
-
10
+import { isVpaasMeeting } from '../../billing-counter/functions';
11
 
11
 
12
 type Props = AbstractButtonProps & {
12
 type Props = AbstractButtonProps & {
13
 
13
 
47
 function _mapStateToProps(state: Object) {
47
 function _mapStateToProps(state: Object) {
48
     const { userDocumentationURL } = state['features/base/config'].deploymentUrls || {};
48
     const { userDocumentationURL } = state['features/base/config'].deploymentUrls || {};
49
     const enabled = getFeatureFlag(state, HELP_BUTTON_ENABLED, true);
49
     const enabled = getFeatureFlag(state, HELP_BUTTON_ENABLED, true);
50
-    const visible = typeof userDocumentationURL === 'string' && enabled;
50
+    const visible = typeof userDocumentationURL === 'string' && enabled && !isVpaasMeeting(state);
51
 
51
 
52
     return {
52
     return {
53
         _userDocumentationURL: userDocumentationURL,
53
         _userDocumentationURL: userDocumentationURL,

Loading…
취소
저장