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';
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>
<Fragment>
<ActionsDropdown
className="big-spacer-left"
+ label="webhooks.show_actions.foo"
>
<ActionsDropdownItem
className="js-webhook-update"
<Fragment>
<ActionsDropdown
className="big-spacer-left"
+ label="webhooks.show_actions.foo"
>
<ActionsDropdownItem
className="js-webhook-update"
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: