2018-07-02 23:14:53 -04:00
|
|
|
<div class="web-hooks-listing">
|
|
|
|
<p>{{i18n "admin.web_hooks.instruction"}}</p>
|
|
|
|
<div class="new-webhook">
|
2022-06-30 06:30:50 -04:00
|
|
|
<LinkTo @route="adminWebHooks.show" @model="new" @tagName="button" @classNames="btn btn-default">
|
2018-07-04 00:18:11 -04:00
|
|
|
{{d-icon "plus"}} {{i18n "admin.web_hooks.new"}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2018-07-04 00:18:11 -04:00
|
|
|
</div>
|
|
|
|
{{#if model}}
|
2022-06-30 06:30:50 -04:00
|
|
|
<LoadMore @selector=".web-hooks tr" @action={{action "loadMore"}}>
|
2018-07-02 23:14:53 -04:00
|
|
|
<table class="web-hooks grid">
|
2016-06-15 13:49:57 -04:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2018-07-02 23:14:53 -04:00
|
|
|
<th>{{i18n "admin.web_hooks.delivery_status.title"}}</th>
|
|
|
|
<th>{{i18n "admin.web_hooks.payload_url"}}</th>
|
2016-06-15 13:49:57 -04:00
|
|
|
<th>{{i18n "admin.web_hooks.description"}}</th>
|
2018-11-26 16:49:57 -05:00
|
|
|
<th>{{i18n "admin.web_hooks.controls"}}</th>
|
2016-06-15 13:49:57 -04:00
|
|
|
</tr>
|
2020-04-13 11:17:20 -04:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
2016-06-15 13:49:57 -04:00
|
|
|
{{#each model as |webHook|}}
|
2020-04-13 11:17:20 -04:00
|
|
|
<tr>
|
2022-06-30 06:30:50 -04:00
|
|
|
<td class="delivery-status"><LinkTo @route="adminWebHooks.showEvents" @model={{webHook.id}}><AdminWebHookStatus @deliveryStatuses={{deliveryStatuses}} @model={{webHook}} /></LinkTo></td>
|
|
|
|
<td class="payload-url"><LinkTo @route="adminWebHooks.show" @model={{webHook}}>{{webHook.payload_url}}</LinkTo></td>
|
2016-06-15 13:49:57 -04:00
|
|
|
<td class="description">{{webHook.description}}</td>
|
|
|
|
<td class="controls">
|
2022-06-30 06:30:50 -04:00
|
|
|
<LinkTo @route="adminWebHooks.show" @model={{webHook}} @tagName="button" @classNames="btn btn-default no-text">{{d-icon "far-edit"}}</LinkTo>
|
|
|
|
<DButton @class="destroy btn-danger" @action={{action "destroy"}} @actionParam={{webHook}} @icon="times" />
|
2020-04-13 11:17:20 -04:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-06-15 13:49:57 -04:00
|
|
|
{{/each}}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-06-30 06:30:50 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{model.loadingMore}} />
|
|
|
|
</LoadMore>
|
2016-06-15 13:49:57 -04:00
|
|
|
{{else}}
|
|
|
|
<p>{{i18n "admin.web_hooks.none"}}</p>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|