discourse/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
Penar Musaraj b8ee52c4cb
UX: Wait for render before invoking A11YDialog (#24100)
Previously, focus wasn't being applied correctly on dialogs using named
components. This was because the A11YDialog was being invoked before
the component was completely rendered.

The long-term plan is to move away from A11YDialog doing the rendering
here, but for now this should do.
2023-10-26 08:24:47 -04:00

34 lines
758 B
Handlebars

<LinkTo @route="adminWebHooks" class="go-back">
{{d-icon "arrow-left"}}
{{i18n "admin.web_hooks.go_back"}}
</LinkTo>
<div class="admin-webhooks__summary">
<h1>
{{this.model.payload_url}}
<DButton
@action={{this.edit}}
@icon="far-edit"
@title={{i18n "admin.web_hooks.edit"}}
class="no-text admin-webhooks__edit-button"
/>
<DButton
@action={{this.destroyWebhook}}
@icon="times"
@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}} />