discourse/app/assets/javascripts/admin/addon/templates/web-hooks-show.hbs
Jarek Radosz f9bdda84ca
DEV: Admin webhooks interface issues (#19360)
1. The events table had broken styling, making each row overflow
2. It had confusing routes: `/:id` for "edit" and `/:id/events` for "show" (now it's `/:id/edit` and `/:id` respectively)
3. There previously was an unused backend action (`#edit`) - now it is used (and `web_hooks/:id/events` route has been removed)
4. There was outdated/misplaced/duplicated CSS
5. And more
2022-12-13 01:53:08 +01:00

35 lines
755 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="btn 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}} />