Unverified Commit 9674bb3d authored by Mattermost Build's avatar Mattermost Build Committed by GitHub
Browse files

MM-27574: Add Learn More subtext to Admin Advisor modal (#6088) (#6096)



* add Learn More subtext to modal
Co-authored-by: default avatarCatalin Tomai <catalin.tomai@mattermost.com>
(cherry picked from commit 473e7745)
parent ac04f1dc
......@@ -86,6 +86,31 @@ exports[`components/WarnMetricAckModal error display 1`] = `
/>
</label>
</div>
<br />
<div
className="help__format-text"
style={
Object {
"display": "flex",
"flexWrap": "wrap",
"opacity": "0.56",
}
}
>
<FormattedMessage
defaultMessage="Contacting support sends your contact information to Mattermost, Inc. {link}"
id="warn_metric_ack_modal.number_of_active_users.subtext"
values={
Object {
"link": <ErrorLink
defaultMessage="Learn More"
messageId="warn_metric_ack_modal.learn_more.link"
url="https://mattermost.com/pl/default-admin-advisory"
/>,
}
}
/>
</div>
</div>
</ModalBody>
<ModalFooter
......@@ -176,6 +201,31 @@ exports[`components/WarnMetricAckModal should match snapshot, init 1`] = `
}
/>
<br />
<br />
<div
className="help__format-text"
style={
Object {
"display": "flex",
"flexWrap": "wrap",
"opacity": "0.56",
}
}
>
<FormattedMessage
defaultMessage="Contacting support sends your contact information to Mattermost, Inc. {link}"
id="warn_metric_ack_modal.number_of_active_users.subtext"
values={
Object {
"link": <ErrorLink
defaultMessage="Learn More"
messageId="warn_metric_ack_modal.learn_more.link"
url="https://mattermost.com/pl/default-admin-advisory"
/>,
}
}
/>
</div>
</div>
</ModalBody>
<ModalFooter
......
......@@ -22,6 +22,7 @@ const StatTypes = Constants.StatTypes;
import * as Utils from 'utils/utils.jsx';
import LoadingWrapper from 'components/widgets/loading/loading_wrapper';
import ErrorLink from 'components/error_page/error_link';
type Props = {
user: UserProfile;
......@@ -161,6 +162,28 @@ export default class WarnMetricAckModal extends React.PureComponent<Props, State
/>
);
const learnMoreLink = 'https://mattermost.com/pl/default-admin-advisory';
const subText = (
<div
style={{display: 'flex', opacity: '0.56', flexWrap: 'wrap'}}
className='help__format-text'
>
<FormattedMessage
id='warn_metric_ack_modal.number_of_active_users.subtext'
defaultMessage='Contacting support sends your contact information to Mattermost, Inc. {link}'
values={{
link: (
<ErrorLink
url={learnMoreLink}
messageId={t('warn_metric_ack_modal.learn_more.link')}
defaultMessage={'Learn More'}
/>
),
}}
/>
</div>
);
const buttonText = (
<FormattedMessage
id='warn_metric_ack_modal.contact_support'
......@@ -191,6 +214,8 @@ export default class WarnMetricAckModal extends React.PureComponent<Props, State
{descriptionText}
<br/>
{this.renderError()}
<br/>
{subText}
</div>
</Modal.Body>
<Modal.Footer>
......
......@@ -3981,9 +3981,11 @@
"view_image.loading": "Loading ",
"warn_metric_ack_modal.contact_support": "Contact us",
"warn_metric_ack_modal.header.title": "Upgrade to Mattermost Enterprise Edition",
"warn_metric_ack_modal.learn_more.link": "Learn more",
"warn_metric_ack_modal.mailto.link": "email us",
"warn_metric_ack_modal.mailto.message": "Support could not be reached. Please {link}.",
"warn_metric_ack_modal.number_of_active_users.description": "Mattermost strongly recommends that deployments of over {limit} users upgrade to Mattermost Enterprise Edition, which offers features such as user management, server clustering, and performance monitoring",
"warn_metric_ack_modal.number_of_active_users.subtext": "Contacting support sends your contact information to Mattermost, Inc. {link}",
"web.footer.about": "About",
"web.footer.help": "Help",
"web.footer.privacy": "Privacy",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment