Add webhook code and rebuild.

This commit is contained in:
James Cole
2022-09-18 10:45:38 +02:00
parent c4c178b39d
commit 67126e46b9
46 changed files with 905 additions and 96 deletions

View File

@@ -48,7 +48,10 @@
<td>
<a :href="'webhooks/show/' + webhook.id">{{ webhook.title }}</a>
</td>
<td>{{ triggers[webhook.trigger] }}</td>
<td>
<span v-if="webhook.active">{{ triggers[webhook.trigger] }}</span>
<span v-if="!webhook.active" class="text-muted"><s>{{ triggers[webhook.trigger] }}</s> ({{ $t('firefly.inactive') }})</span>
</td>
<td>{{ responses[webhook.response] }} ({{ deliveries[webhook.delivery] }})</td>
<td>
<em style="cursor:pointer"
@@ -127,6 +130,7 @@ export default {
id: current.id,
title: current.attributes.title,
url: current.attributes.url,
active: current.attributes.active,
full_url: current.attributes.url,
secret: current.attributes.secret,
trigger: current.attributes.trigger,