From 71694b89f70bd97204bc22107c36301b1466223e Mon Sep 17 00:00:00 2001 From: 7PH Date: Thu, 23 Mar 2023 10:21:46 +0100 Subject: [PATCH] SONAR-18875 Fix missing label in admin webhook page, on setting opener menu button --- .../main/js/apps/webhooks/components/WebhookActions.tsx | 7 +++++-- .../__tests__/__snapshots__/WebhookActions-test.tsx.snap | 2 ++ .../src/main/resources/org/sonar/l10n/core.properties | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/WebhookActions.tsx b/server/sonar-web/src/main/js/apps/webhooks/components/WebhookActions.tsx index 4a97aa0b15c..622bd54f9cf 100644 --- a/server/sonar-web/src/main/js/apps/webhooks/components/WebhookActions.tsx +++ b/server/sonar-web/src/main/js/apps/webhooks/components/WebhookActions.tsx @@ -22,7 +22,7 @@ import ActionsDropdown, { ActionsDropdownDivider, ActionsDropdownItem, } from '../../../components/controls/ActionsDropdown'; -import { translate } from '../../../helpers/l10n'; +import { translate, translateWithParameters } from '../../../helpers/l10n'; import { Webhook } from '../../../types/webhook'; import CreateWebhookForm from './CreateWebhookForm'; import DeleteWebhookForm from './DeleteWebhookForm'; @@ -90,7 +90,10 @@ export default class WebhookActions extends React.PureComponent { const { webhook } = this.props; return ( <> - + {translate('update_verb')} diff --git a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookActions-test.tsx.snap b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookActions-test.tsx.snap index f5806c7f719..2ccca3f41fc 100644 --- a/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookActions-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookActions-test.tsx.snap @@ -4,6 +4,7 @@ exports[`should display the deliveries form 1`] = `