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

This commit is contained in:
hmuresan 2021-05-11 12:17:55 +03:00 committed by Horatiu Muresan
parent 07eb19b98a
commit a1a5d1e7f8
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import { IconDownload } from '../../base/icons';
import { connect } from '../../base/redux';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { openURLInBrowser } from '../../base/util';
import { isVpaasMeeting } from '../../billing-counter/functions';
type Props = AbstractButtonProps & {
@ -45,7 +45,7 @@ class DownloadButton extends AbstractButton<Props, *> {
*/
function _mapStateToProps(state: Object) {
const { downloadAppsUrl } = state['features/base/config'].deploymentUrls || {};
const visible = typeof downloadAppsUrl === 'string';
const visible = typeof downloadAppsUrl === 'string' && !isVpaasMeeting(state);
return {
_downloadAppsUrl: downloadAppsUrl,

View File

@ -7,7 +7,7 @@ import { IconHelp } from '../../base/icons';
import { connect } from '../../base/redux';
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox/components';
import { openURLInBrowser } from '../../base/util';
import { isVpaasMeeting } from '../../billing-counter/functions';
type Props = AbstractButtonProps & {
@ -47,7 +47,7 @@ class HelpButton extends AbstractButton<Props, *> {
function _mapStateToProps(state: Object) {
const { userDocumentationURL } = state['features/base/config'].deploymentUrls || {};
const enabled = getFeatureFlag(state, HELP_BUTTON_ENABLED, true);
const visible = typeof userDocumentationURL === 'string' && enabled;
const visible = typeof userDocumentationURL === 'string' && enabled && !isVpaasMeeting(state);
return {
_userDocumentationURL: userDocumentationURL,