Skip to content

Commit 5e716e7

Browse files
committed
feat(webhooks): display webhook name in the UI and include it in the API response
1 parent e547778 commit 5e716e7

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

app/javascript/dashboard/routes/dashboard/settings/integrations/Webhooks/WebhookRow.vue

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,19 @@ const subscribedEvents = computed(() => {
3535
<template>
3636
<tr>
3737
<td class="py-4 ltr:pr-4 rtl:pl-4">
38-
<div class="font-medium break-words text-slate-700 dark:text-slate-100">
38+
<div
39+
v-if="webhook.name"
40+
class="font-medium break-words text-slate-700 dark:text-slate-100"
41+
>
42+
<span class="font-bold text-indigo-600 dark:text-indigo-400">
43+
{{ webhook.name }}
44+
</span>
45+
{{ webhook.url }}
46+
</div>
47+
<div
48+
v-if="!webhook.name"
49+
class="font-medium break-words text-slate-700 dark:text-slate-100"
50+
>
3951
{{ webhook.url }}
4052
</div>
4153
<div class="block mt-1 text-sm text-slate-500 dark:text-slate-400">

app/views/api/v1/accounts/webhooks/_webhook.json.jbuilder

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
json.id webhook.id
2+
json.name webhook.name
23
json.url webhook.url
34
json.account_id webhook.account_id
45
json.subscriptions webhook.subscriptions

0 commit comments

Comments
 (0)