mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 08:03:40 +08:00
b8ee52c4cb
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.
69 lines
2.2 KiB
Handlebars
69 lines
2.2 KiB
Handlebars
<div class="web-hooks-listing">
|
|
<p>{{i18n "admin.web_hooks.instruction"}}</p>
|
|
|
|
<div class="new-webhook">
|
|
<LinkTo
|
|
@route="adminWebHooks.edit"
|
|
@model="new"
|
|
class="btn btn-default admin-webhooks__new-button"
|
|
>
|
|
{{d-icon "plus"}}
|
|
{{i18n "admin.web_hooks.new"}}
|
|
</LinkTo>
|
|
</div>
|
|
|
|
{{#if this.model}}
|
|
<LoadMore @selector=".web-hooks tr" @action={{this.loadMore}}>
|
|
<table class="web-hooks grid">
|
|
<thead>
|
|
<tr>
|
|
<th>{{i18n "admin.web_hooks.delivery_status.title"}}</th>
|
|
<th>{{i18n "admin.web_hooks.payload_url"}}</th>
|
|
<th>{{i18n "admin.web_hooks.description_label"}}</th>
|
|
<th>{{i18n "admin.web_hooks.controls"}}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{{#each this.model as |webhook|}}
|
|
<tr>
|
|
<td class="delivery-status">
|
|
<LinkTo @route="adminWebHooks.show" @model={{webhook}}>
|
|
<WebhookStatus
|
|
@deliveryStatuses={{this.deliveryStatuses}}
|
|
@webhook={{webhook}}
|
|
/>
|
|
</LinkTo>
|
|
</td>
|
|
<td class="payload-url">
|
|
<LinkTo @route="adminWebHooks.edit" @model={{webhook}}>
|
|
{{webhook.payload_url}}
|
|
</LinkTo>
|
|
</td>
|
|
<td class="description">{{webhook.description}}</td>
|
|
<td class="controls">
|
|
<LinkTo
|
|
@route="adminWebHooks.edit"
|
|
@model={{webhook}}
|
|
class="btn btn-default no-text"
|
|
title={{i18n "admin.web_hooks.edit"}}
|
|
>
|
|
{{d-icon "far-edit"}}
|
|
</LinkTo>
|
|
|
|
<DButton
|
|
@action={{fn this.destroyWebhook webhook}}
|
|
@icon="times"
|
|
@title="delete"
|
|
class="destroy btn-danger"
|
|
/>
|
|
</td>
|
|
</tr>
|
|
{{/each}}
|
|
</tbody>
|
|
</table>
|
|
<ConditionalLoadingSpinner @condition={{this.model.loadingMore}} />
|
|
</LoadMore>
|
|
{{else}}
|
|
<p>{{i18n "admin.web_hooks.none"}}</p>
|
|
{{/if}}
|
|
</div> |