MM-61380 Fix link in Compliance Monitoring page banner (#29012)

Этот коммит содержится в:
Harrison Healey
2024-11-01 16:27:21 -04:00
коммит произвёл GitHub
родитель f41d2d7774
Коммит f10ae31422
2 изменённых файлов: 10 добавлений и 5 удалений

Просмотреть файл

@@ -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: '<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
@@ -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')),
},

Просмотреть файл

@@ -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",