]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-18875 Fix missing label in admin webhook page, on setting opener menu button
author7PH <benjamin.raymond@sonarsource.com>
Thu, 23 Mar 2023 09:21:46 +0000 (10:21 +0100)
committersonartech <sonartech@sonarsource.com>
Mon, 27 Mar 2023 20:03:03 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/webhooks/components/WebhookActions.tsx
server/sonar-web/src/main/js/apps/webhooks/components/__tests__/__snapshots__/WebhookActions-test.tsx.snap
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index 4a97aa0b15cec937d563fb9d0441b30dddc51378..622bd54f9cf2950965f7973a64d70b4e38443f68 100644 (file)
@@ -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<Props, State> {
     const { webhook } = this.props;
     return (
       <>
-        <ActionsDropdown className="big-spacer-left">
+        <ActionsDropdown
+          className="big-spacer-left"
+          label={translateWithParameters('webhooks.show_actions', webhook.name)}
+        >
           <ActionsDropdownItem className="js-webhook-update" onClick={this.handleUpdateClick}>
             {translate('update_verb')}
           </ActionsDropdownItem>
index f5806c7f719953199e05c01b4e403988cc571423..2ccca3f41fc3c86ba1c130314bc61ade1ab26491 100644 (file)
@@ -4,6 +4,7 @@ exports[`should display the deliveries form 1`] = `
 <Fragment>
   <ActionsDropdown
     className="big-spacer-left"
+    label="webhooks.show_actions.foo"
   >
     <ActionsDropdownItem
       className="js-webhook-update"
@@ -33,6 +34,7 @@ exports[`should render correctly 1`] = `
 <Fragment>
   <ActionsDropdown
     className="big-spacer-left"
+    label="webhooks.show_actions.foo"
   >
     <ActionsDropdownItem
       className="js-webhook-update"
index 1f5cbd144dd78b812c370b1f60773b7d3e4dd007..344ee8777adc25903f5d7dbd91f7702d4acdc431 100644 (file)
@@ -4527,6 +4527,7 @@ webhooks.delete=Delete Webhook
 webhooks.delete.confirm=Are you sure you want to delete the webhook "{0}"?
 webhooks.description=Webhooks are used to notify external services when a project analysis is done. An HTTP POST request including a JSON payload is sent to each of the provided URLs. Learn more in the {url}.
 webhooks.deliveries.show=Show recent deliveries
+webhooks.show_actions=Show actions for webhook {0}
 webhooks.deliveries_for_x=Recent deliveries of {0}
 webhooks.delivery.duration_x=Duration: {0}
 webhooks.delivery.payload=Payload: