discourse/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
Jarek Radosz 1c87bb7fe9
DEV: Update DButton uses (#23333)
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
2023-08-31 11:49:35 +02:00

34 lines
751 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.destroy}}
@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}} />