Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

hmuresana1a5d1e7f8d4
diff --git a/react/features/toolbox/components/DownloadButton.js b/react/features/toolbox/components/DownloadButton.js
index 36b85a3179..264b118e80 100644
--- a/react/features/toolbox/components/DownloadButton.js
+++ b/react/features/toolbox/components/DownloadButton.js
@@ -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,
diff --git a/react/features/toolbox/components/HelpButton.js b/react/features/toolbox/components/HelpButton.js
index e8d2558ea6..2115c20ab7 100644
--- a/react/features/toolbox/components/HelpButton.js
+++ b/react/features/toolbox/components/HelpButton.js
@@ -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,