2022-12-13 20:32:34 +08:00
|
|
|
<li>
|
|
|
|
<div class="col first status">
|
2024-07-09 04:43:16 +08:00
|
|
|
{{#if @event.redelivering}}
|
2024-09-13 23:50:52 +08:00
|
|
|
{{d-icon "arrows-rotate"}}
|
2024-07-09 04:43:16 +08:00
|
|
|
{{else}}
|
|
|
|
<span class={{this.statusColorClasses}}>{{@event.status}}</span>
|
|
|
|
{{/if}}
|
2022-12-13 20:32:34 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col event-id">{{@event.id}}</div>
|
|
|
|
|
|
|
|
<div class="col timestamp">{{this.createdAt}}</div>
|
|
|
|
|
|
|
|
<div class="col completion">{{this.completion}}</div>
|
|
|
|
|
|
|
|
<div class="col actions">
|
|
|
|
<DButton
|
|
|
|
@icon={{this.expandRequestIcon}}
|
|
|
|
@action={{this.toggleRequest}}
|
|
|
|
@label="admin.web_hooks.events.request"
|
|
|
|
/>
|
|
|
|
<DButton
|
|
|
|
@icon={{this.expandResponseIcon}}
|
|
|
|
@action={{this.toggleResponse}}
|
|
|
|
@label="admin.web_hooks.events.response"
|
|
|
|
/>
|
|
|
|
<DButton
|
2024-09-13 23:50:52 +08:00
|
|
|
@icon="arrows-rotate"
|
2022-12-13 20:32:34 +08:00
|
|
|
@action={{this.redeliver}}
|
|
|
|
@label="admin.web_hooks.events.redeliver"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{#if this.expandDetails}}
|
|
|
|
<div class="details">
|
|
|
|
<h3>{{i18n "admin.web_hooks.events.headers"}}</h3>
|
|
|
|
<pre><code>{{this.headers}}</code></pre>
|
|
|
|
|
|
|
|
<h3>{{this.bodyLabel}}</h3>
|
|
|
|
<pre><code>{{this.body}}</code></pre>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</li>
|