From f10ae314222ea1240766e8f0786435d2c71a31ef Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Fri, 1 Nov 2024 16:27:21 -0400 Subject: [PATCH] MM-61380 Fix link in Compliance Monitoring page banner (#29012) --- .../components/admin_console/admin_definition.tsx | 13 +++++++++---- webapp/channels/src/i18n/en.json | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/webapp/channels/src/components/admin_console/admin_definition.tsx b/webapp/channels/src/components/admin_console/admin_definition.tsx index b782e7dd78..d5f6ff69ea 100644 --- a/webapp/channels/src/components/admin_console/admin_definition.tsx +++ b/webapp/channels/src/components/admin_console/admin_definition.tsx @@ -6,6 +6,7 @@ import React from 'react'; import type {MessageDescriptor} from 'react-intl'; import {FormattedMessage, defineMessage, defineMessages} from 'react-intl'; +import {Link} from 'react-router-dom'; import {AccountMultipleOutlineIcon, ChartBarIcon, CogOutlineIcon, CreditCardOutlineIcon, FlaskOutlineIcon, FormatListBulletedIcon, InformationOutlineIcon, PowerPlugOutlineIcon, ServerVariantIcon, ShieldOutlineIcon, SitemapIcon} from '@mattermost/compass-icons/components'; import type {CloudState, Product} from '@mattermost/types/cloud'; @@ -3198,7 +3199,6 @@ const AdminDefinition: AdminDefinitionType = { { type: 'banner', label: defineMessage({id: 'admin.mfa.bannerDesc', defaultMessage: 'Multi-factor authentication is available for accounts with AD/LDAP or email login. If other login methods are used, MFA should be configured with the authentication provider.'}), - label_markdown: false, label_values: { link: (msg: string) => ( Compliance Export feature, and will be removed in a future release. We recommend migrating to the new system.'}), + label_values: { + link: (msg: string) => ( + + {msg} + + ), + }, banner_type: 'info', isHidden: it.not(it.licensedForFeature('Compliance')), }, diff --git a/webapp/channels/src/i18n/en.json b/webapp/channels/src/i18n/en.json index 9766fc3c04..65a5dbd4af 100644 --- a/webapp/channels/src/i18n/en.json +++ b/webapp/channels/src/i18n/en.json @@ -578,7 +578,7 @@ "admin.compliance.enableDailyTitle": "Enable Daily Report:", "admin.compliance.enableDesc": "When true, Mattermost allows compliance reporting from the Compliance and Auditing tab. See documentation to learn more.", "admin.compliance.enableTitle": "Enable Compliance Reporting:", - "admin.compliance.newComplianceExportBanner": "This feature is replaced by a new [Compliance Export]({siteURL}/admin_console/compliance/export) feature, and will be removed in a future release. We recommend migrating to the new system.", + "admin.compliance.newComplianceExportBanner": "This feature is replaced by a new Compliance Export feature, and will be removed in a future release. We recommend migrating to the new system.", "admin.complianceExport.createJob.help": "Initiates a Compliance Export job immediately.", "admin.complianceExport.createJob.title": "Run Compliance Export Job Now", "admin.complianceExport.exportFormat.actiance": "Actiance XML",