fix(deploymentUrls): Disable help and download apps buttons for JaaS
This commit is contained in:
parent
07eb19b98a
commit
a1a5d1e7f8
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue