mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[MM-60817] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/convert_channel_modal/convert_channel_modal.tsx' with FormattedMessage (#28642)
This commit is contained in:
parent
adeb1e9da1
commit
2780b87d00
@ -9,8 +9,6 @@ import {General} from 'mattermost-redux/constants';
|
|||||||
|
|
||||||
import {trackEvent} from 'actions/telemetry_actions.jsx';
|
import {trackEvent} from 'actions/telemetry_actions.jsx';
|
||||||
|
|
||||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
|
||||||
|
|
||||||
import Constants from 'utils/constants';
|
import Constants from 'utils/constants';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -84,11 +82,12 @@ export default class ConvertChannelModal extends React.PureComponent<Props, Stat
|
|||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<p>
|
<p>
|
||||||
<FormattedMarkdownMessage
|
<FormattedMessage
|
||||||
id='convert_channel.question1'
|
id='convertChannel.question1'
|
||||||
defaultMessage='When you convert **{display_name}** to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.'
|
defaultMessage='When you convert <b>{display_name}</b> to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.'
|
||||||
values={{
|
values={{
|
||||||
display_name: channelDisplayName,
|
display_name: channelDisplayName,
|
||||||
|
b: (chunks: string) => <b>{chunks}</b>,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
@ -99,11 +98,12 @@ export default class ConvertChannelModal extends React.PureComponent<Props, Stat
|
|||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<FormattedMarkdownMessage
|
<FormattedMessage
|
||||||
id='convert_channel.question3'
|
id='convertChannel.question3'
|
||||||
defaultMessage='Are you sure you want to convert **{display_name}** to a private channel?'
|
defaultMessage='Are you sure you want to convert <b>{display_name}</b> to a private channel?'
|
||||||
values={{
|
values={{
|
||||||
display_name: channelDisplayName,
|
display_name: channelDisplayName,
|
||||||
|
b: (chunks: string) => <b>{chunks}</b>,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
|
@ -3412,10 +3412,10 @@
|
|||||||
"confirm_switch_to_yearly_modal.title": "Confirm switch to annual plan",
|
"confirm_switch_to_yearly_modal.title": "Confirm switch to annual plan",
|
||||||
"convert_channel.cancel": "No, cancel",
|
"convert_channel.cancel": "No, cancel",
|
||||||
"convert_channel.confirm": "Yes, convert to private channel",
|
"convert_channel.confirm": "Yes, convert to private channel",
|
||||||
"convert_channel.question1": "When you convert **{display_name}** to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.",
|
|
||||||
"convert_channel.question2": "The change is permanent and cannot be undone.",
|
"convert_channel.question2": "The change is permanent and cannot be undone.",
|
||||||
"convert_channel.question3": "Are you sure you want to convert **{display_name}** to a private channel?",
|
|
||||||
"convert_channel.title": "Convert {display_name} to a Private Channel?",
|
"convert_channel.title": "Convert {display_name} to a Private Channel?",
|
||||||
|
"convertChannel.question1": "When you convert <b>{display_name}</b> to a private channel, history and membership are preserved. Publicly shared files remain accessible to anyone with the link. Membership in a private channel is by invitation only.",
|
||||||
|
"convertChannel.question3": "Are you sure you want to convert <b>{display_name}</b> to a private channel?",
|
||||||
"copied.message": "Copied",
|
"copied.message": "Copied",
|
||||||
"copy_text.copied": "Copied",
|
"copy_text.copied": "Copied",
|
||||||
"copy_text.copy": "Copy",
|
"copy_text.copy": "Copy",
|
||||||
|
Loading…
Reference in New Issue
Block a user