mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-07 10:56:41 +08:00
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
No EOL
2.2 KiB
Handlebars
69 lines
No EOL
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> |