[MM-60857] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/plugin_marketplace/marketplace_item/marketplace_item_plugin/marketplace_item_plugin.tsx' with FormattedMessage (#28865)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
90cc1f6931
Коммит
038d59560e
@@ -868,13 +868,13 @@ exports[`components/MarketplaceItemPlugin UpdateConfirmationModal should add ext
|
||||
/>
|
||||
</p>,
|
||||
<p>
|
||||
<FormattedMarkdownMessage
|
||||
defaultMessage="You currently have {installedVersion} installed. View the [release notes](!{releaseNotesUrl}) to learn about the changes included in this update."
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="You currently have {installedVersion} installed. View the <a>release notes</a> to learn about the changes included in this update."
|
||||
id="marketplace_modal.list.update_confirmation.message.current_with_release_notes"
|
||||
values={
|
||||
Object {
|
||||
"a": [Function],
|
||||
"installedVersion": "0.0.1",
|
||||
"releaseNotesUrl": "http://example.com/release",
|
||||
}
|
||||
}
|
||||
/>
|
||||
@@ -882,12 +882,12 @@ exports[`components/MarketplaceItemPlugin UpdateConfirmationModal should add ext
|
||||
<p
|
||||
className="alert alert-warning"
|
||||
>
|
||||
<FormattedMarkdownMessage
|
||||
defaultMessage="This update may contain breaking changes. Consult the [release notes](!{releaseNotesUrl}) before upgrading."
|
||||
<Memo(MemoizedFormattedMessage)
|
||||
defaultMessage="This update may contain breaking changes. Consult the <a>release notes</a> before upgrading."
|
||||
id="marketplace_modal.list.update_confirmation.message.warning_major_version_with_release_notes"
|
||||
values={
|
||||
Object {
|
||||
"releaseNotesUrl": "http://example.com/release",
|
||||
"a": [Function],
|
||||
}
|
||||
}
|
||||
/>
|
||||
|
||||
@@ -12,7 +12,6 @@ import type {PluginStatusRedux} from '@mattermost/types/plugins';
|
||||
|
||||
import ConfirmModal from 'components/confirm_modal';
|
||||
import ExternalLink from 'components/external_link';
|
||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
||||
import LoadingWrapper from 'components/widgets/loading/loading_wrapper';
|
||||
|
||||
import MarketplaceItem from '../marketplace_item';
|
||||
@@ -131,10 +130,19 @@ export const UpdateConfirmationModal = ({show, name, version, installedVersion,
|
||||
if (releaseNotesUrl) {
|
||||
messages.push(
|
||||
<p key='current'>
|
||||
<FormattedMarkdownMessage
|
||||
<FormattedMessage
|
||||
id='marketplace_modal.list.update_confirmation.message.current_with_release_notes'
|
||||
defaultMessage='You currently have {installedVersion} installed. View the [release notes](!{releaseNotesUrl}) to learn about the changes included in this update.'
|
||||
values={{installedVersion, releaseNotesUrl}}
|
||||
defaultMessage='You currently have {installedVersion} installed. View the <a>release notes</a> to learn about the changes included in this update.'
|
||||
values={{
|
||||
installedVersion,
|
||||
a: (chunks: string) => (
|
||||
<ExternalLink
|
||||
href={releaseNotesUrl as string}
|
||||
location='plugin-marketplace'
|
||||
>
|
||||
{chunks}
|
||||
</ExternalLink>
|
||||
)}}
|
||||
/>
|
||||
</p>,
|
||||
);
|
||||
@@ -165,10 +173,18 @@ export const UpdateConfirmationModal = ({show, name, version, installedVersion,
|
||||
className='alert alert-warning'
|
||||
key='warning'
|
||||
>
|
||||
<FormattedMarkdownMessage
|
||||
<FormattedMessage
|
||||
id='marketplace_modal.list.update_confirmation.message.warning_major_version_with_release_notes'
|
||||
defaultMessage='This update may contain breaking changes. Consult the [release notes](!{releaseNotesUrl}) before upgrading.'
|
||||
values={{releaseNotesUrl}}
|
||||
defaultMessage='This update may contain breaking changes. Consult the <a>release notes</a> before upgrading.'
|
||||
values={{
|
||||
a: (chunks: string) => (
|
||||
<ExternalLink
|
||||
href={releaseNotesUrl as string}
|
||||
location='plugin-marketplace'
|
||||
>
|
||||
{chunks}
|
||||
</ExternalLink>
|
||||
)}}
|
||||
/>
|
||||
</p>,
|
||||
);
|
||||
|
||||
@@ -4248,10 +4248,10 @@
|
||||
"marketplace_modal.list.update_available": "Update available:",
|
||||
"marketplace_modal.list.update_confirmation.confirm_button": "Update",
|
||||
"marketplace_modal.list.update_confirmation.message.current": "You currently have {installedVersion} installed.",
|
||||
"marketplace_modal.list.update_confirmation.message.current_with_release_notes": "You currently have {installedVersion} installed. View the [release notes](!{releaseNotesUrl}) to learn about the changes included in this update.",
|
||||
"marketplace_modal.list.update_confirmation.message.current_with_release_notes": "You currently have {installedVersion} installed. View the <a>release notes</a> to learn about the changes included in this update.",
|
||||
"marketplace_modal.list.update_confirmation.message.intro": "Are you sure you want to update the {name} plugin to {version}?",
|
||||
"marketplace_modal.list.update_confirmation.message.warning_major_version": "This update may contain breaking changes.",
|
||||
"marketplace_modal.list.update_confirmation.message.warning_major_version_with_release_notes": "This update may contain breaking changes. Consult the [release notes](!{releaseNotesUrl}) before upgrading.",
|
||||
"marketplace_modal.list.update_confirmation.message.warning_major_version_with_release_notes": "This update may contain breaking changes. Consult the <a>release notes</a> before upgrading.",
|
||||
"marketplace_modal.list.update_confirmation.title": "Confirm Plugin Update",
|
||||
"marketplace_modal.no_plugins": "No plugins found",
|
||||
"marketplace_modal.no_plugins_installed": "No plugins installed found",
|
||||
|
||||
Ссылка в новой задаче
Block a user