Skip to content

Commit

Permalink
MM-61380 Fix link in Compliance Monitoring page banner (mattermost#29012
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hmhealey authored Nov 1, 2024
1 parent f41d2d7 commit f10ae31
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -3198,7 +3199,6 @@ const AdminDefinition: AdminDefinitionType = {
{
type: 'banner',
label: defineMessage({id: 'admin.mfa.bannerDesc', defaultMessage: '<link>Multi-factor authentication</link> 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) => (
<ExternalLink
Expand Down Expand Up @@ -5795,9 +5795,14 @@ const AdminDefinition: AdminDefinitionType = {
settings: [
{
type: 'banner',
label: defineMessage({id: 'admin.compliance.newComplianceExportBanner', defaultMessage: '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.'}),
label_markdown: true,
label_values: {siteURL: getSiteURL()},
label: defineMessage({id: 'admin.compliance.newComplianceExportBanner', defaultMessage: 'This feature is replaced by a new <link>Compliance Export</link> feature, and will be removed in a future release. We recommend migrating to the new system.'}),
label_values: {
link: (msg: string) => (
<Link to='/admin_console/compliance/export'>
{msg}
</Link>
),
},
banner_type: 'info',
isHidden: it.not(it.licensedForFeature('Compliance')),
},
Expand Down
2 changes: 1 addition & 1 deletion webapp/channels/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@
"admin.compliance.enableDailyTitle": "Enable Daily Report:",
"admin.compliance.enableDesc": "When true, Mattermost allows compliance reporting from the <strong>Compliance and Auditing</strong> tab. See <link>documentation</link> 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 <link>Compliance Export</link> 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",
Expand Down

0 comments on commit f10ae31

Please sign in to comment.