Ted Johansson ad8f9465c3
FIX: Minor i18n problems on admin webhooks pages (#31010)
This fixes two minor problems on the admin webhooks page.

- Wrong key used for edit button title in listing.
- Duplicated use of `i18n` leading to "en.Edit" in show page.
2025-01-27 13:46:35 +08:00

34 lines
779 B
Handlebars

<LinkTo @route="adminWebHooks" class="go-back">
{{d-icon "arrow-left"}}
{{i18n "admin.web_hooks.back"}}
</LinkTo>
<div class="admin-webhooks__summary">
<h1>
{{this.model.payload_url}}
<DButton
@action={{this.edit}}
@icon="far-pen-to-square"
@title="admin.web_hooks.edit"
class="no-text admin-webhooks__edit-button"
/>
<DButton
@action={{this.destroyWebhook}}
@icon="xmark"
@title="delete"
class="destroy btn-danger admin-webhooks__delete-button"
/>
</h1>
<div>
<span class="admin-webhooks__description-label">
{{i18n "admin.web_hooks.description_label"}}:
</span>
{{this.model.description}}
</div>
</div>
<WebhookEvents @webhookId={{this.model.id}} @status={{this.status}} />