[MM-60843] Replace FormattedMarkdownMessage in 'webapp/channels/src/components/admin_console/plugin_management/plugin_management.tsx' with FormattedMessage (#28675)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
ebcde8535e
Коммит
d2d0ae7654
@@ -179,7 +179,7 @@ exports[`components/PluginManagement should match snapshot 1`] = `
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -455,7 +455,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Marketp
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={true}
|
disabled={true}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -816,7 +816,7 @@ exports[`components/PluginManagement should match snapshot when \`Enable Remote
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -1094,7 +1094,7 @@ exports[`components/PluginManagement should match snapshot when \`Require Signat
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -1370,7 +1370,7 @@ exports[`components/PluginManagement should match snapshot, No installed plugins
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -1650,7 +1650,7 @@ exports[`components/PluginManagement should match snapshot, allow insecure URL e
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -1928,7 +1928,7 @@ exports[`components/PluginManagement should match snapshot, disabled 1`] = `
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={true}
|
disabled={true}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -2179,7 +2179,7 @@ exports[`components/PluginManagement should match snapshot, text entered into th
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -2457,7 +2457,7 @@ exports[`components/PluginManagement should match snapshot, upload disabled 1`]
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={true}
|
disabled={true}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -2738,7 +2738,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -3077,7 +3077,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -3384,7 +3384,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -3691,7 +3691,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
@@ -3998,7 +3998,7 @@ exports[`components/PluginManagement should match snapshot, with installed plugi
|
|||||||
<Memo(BooleanSetting)
|
<Memo(BooleanSetting)
|
||||||
disabled={false}
|
disabled={false}
|
||||||
helpText={
|
helpText={
|
||||||
<FormattedMarkdownMessage
|
<Memo(MemoizedFormattedMessage)
|
||||||
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
defaultMessage="When true, marketplace fetches latest plugins from the configured Marketplace URL."
|
||||||
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
id="admin.plugins.settings.enableRemoteMarketplaceDesc"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ import type {ActionResult} from 'mattermost-redux/types/actions';
|
|||||||
|
|
||||||
import ConfirmModal from 'components/confirm_modal';
|
import ConfirmModal from 'components/confirm_modal';
|
||||||
import ExternalLink from 'components/external_link';
|
import ExternalLink from 'components/external_link';
|
||||||
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
|
|
||||||
import LoadingScreen from 'components/loading_screen';
|
import LoadingScreen from 'components/loading_screen';
|
||||||
|
|
||||||
import {appsPluginID} from 'utils/apps';
|
import {appsPluginID} from 'utils/apps';
|
||||||
@@ -1216,7 +1215,7 @@ class PluginManagement extends AdminSettings<Props, State> {
|
|||||||
<BooleanSetting
|
<BooleanSetting
|
||||||
id='enableRemoteMarketplace'
|
id='enableRemoteMarketplace'
|
||||||
label={<FormattedMessage {...messages.enableRemoteMarketplace}/>}
|
label={<FormattedMessage {...messages.enableRemoteMarketplace}/>}
|
||||||
helpText={<FormattedMarkdownMessage {...messages.enableRemoteMarketplaceDesc}/>}
|
helpText={<FormattedMessage {...messages.enableRemoteMarketplaceDesc}/>}
|
||||||
value={this.state.enableRemoteMarketplace}
|
value={this.state.enableRemoteMarketplace}
|
||||||
disabled={this.props.isDisabled || !this.state.enable || !this.state.enableUploads || !this.state.enableMarketplace}
|
disabled={this.props.isDisabled || !this.state.enable || !this.state.enableUploads || !this.state.enableMarketplace}
|
||||||
onChange={this.handleChange}
|
onChange={this.handleChange}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user