Skip to content

Commit

Permalink
[MM-60848] Replace FormattedMarkdownMessage in 'webapp/channels/src/c…
Browse files Browse the repository at this point in the history
…omponents/integrations/installed_outgoing_webhooks/installed_outgoing_webhooks.tsx' with FormattedMessage (mattermost#28704)
  • Loading branch information
Gesare5 authored Oct 15, 2024
1 parent ff6de4b commit 6f4b35c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,14 @@ exports[`components/integrations/InstalledOutgoingWebhooks should match snapshot
/>
}
emptyTextSearch={
<FormattedMarkdownMessage
defaultMessage="No outgoing webhooks match {searchTerm}"
id="installed_outgoing_webhooks.emptySearch"
<Memo(MemoizedFormattedMessage)
defaultMessage="No outgoing webhooks match <b>{searchTerm}</b>"
id="installed_outgoing_webhooks.search.empty"
values={
Object {
"b": [Function],
}
}
/>
}
header={
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import type {ActionResult} from 'mattermost-redux/types/actions';

import BackstageList from 'components/backstage/components/backstage_list';
import ExternalLink from 'components/external_link';
import FormattedMarkdownMessage from 'components/formatted_markdown_message';
import InstalledOutgoingWebhook, {matchesFilter} from 'components/integrations/installed_outgoing_webhook';

import {Constants, DeveloperLinks} from 'utils/constants';
Expand Down Expand Up @@ -185,9 +184,12 @@ export default class InstalledOutgoingWebhooks extends React.PureComponent<Props
/>
}
emptyTextSearch={
<FormattedMarkdownMessage
id='installed_outgoing_webhooks.emptySearch'
defaultMessage='No outgoing webhooks match {searchTerm}'
<FormattedMessage
id='installed_outgoing_webhooks.search.empty'
defaultMessage='No outgoing webhooks match <b>{searchTerm}</b>'
values={{
b: (chunks: string) => <b>{chunks}</b>,
}}
/>
}
helpText={
Expand Down
2 changes: 1 addition & 1 deletion webapp/channels/src/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4002,12 +4002,12 @@
"installed_outgoing_webhooks.add": "Add Outgoing Webhook",
"installed_outgoing_webhooks.delete.confirm": "This action permanently deletes the outgoing webhook and breaks any integrations using it. Are you sure you want to delete it?",
"installed_outgoing_webhooks.empty": "No outgoing webhooks found",
"installed_outgoing_webhooks.emptySearch": "No outgoing webhooks match **{searchTerm}**",
"installed_outgoing_webhooks.header": "Outgoing Webhooks",
"installed_outgoing_webhooks.help": "Use outgoing webhooks to connect external tools to Mattermost. {buildYourOwn} or visit the {appDirectory} to find self-hosted, third-party apps and integrations.",
"installed_outgoing_webhooks.help.appDirectory": "App Directory",
"installed_outgoing_webhooks.help.buildYourOwn": "Build your own",
"installed_outgoing_webhooks.search": "Search Outgoing Webhooks",
"installed_outgoing_webhooks.search.empty": "No outgoing webhooks match <b>{searchTerm}</b>",
"installed_outgoing_webhooks.unknown_channel": "A Private Webhook",
"installedIntegrations.clientId": "Client ID: <b>{clientId}</b>",
"installedIntegrations.clientSecret": "Client Secret: <b>{clientSecret}</b>",
Expand Down

0 comments on commit 6f4b35c

Please sign in to comment.