From 17f77a42466fb1047ce1b64702fe6d153f9dcc37 Mon Sep 17 00:00:00 2001 From: hmuresan Date: Fri, 16 Jul 2021 14:00:11 +0300 Subject: [PATCH] fix(support-url): Hide contact support button when SUPPORT_URL is empty - fix issue on error notification on invite contacts --- .../add-people-dialog/web/InviteContactsForm.js | 11 ++++------- .../notifications/components/web/Notification.js | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js b/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js index 9b3c7e5f1..b50081479 100644 --- a/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js +++ b/react/features/invite/components/add-people-dialog/web/InviteContactsForm.js @@ -511,11 +511,7 @@ class InviteContactsForm extends AbstractAddPeopleDialog { const supportString = t('inlineDialogFailure.supportMsg'); const supportLink = interfaceConfig.SUPPORT_URL; - if (!supportLink) { - return null; - } - - const supportLinkContent = ( + const supportLinkContent = supportLink ? ( { supportString.padEnd(supportString.length + 1) } @@ -524,13 +520,14 @@ class InviteContactsForm extends AbstractAddPeopleDialog { + rel = 'noopener noreferrer' + target = '_blank'> { t('inlineDialogFailure.support') } . - ); + ) : null; return (
diff --git a/react/features/notifications/components/web/Notification.js b/react/features/notifications/components/web/Notification.js index 152adca15..6a40e58a4 100644 --- a/react/features/notifications/components/web/Notification.js +++ b/react/features/notifications/components/web/Notification.js @@ -116,7 +116,7 @@ class Notification extends AbstractNotification { } ]; - if (!hideErrorSupportLink) { + if (!hideErrorSupportLink && interfaceConfig.SUPPORT_URL) { buttons.push({ content: this.props.t('dialog.contactSupport'), onClick: this._onOpenSupportLink