Skip to content

Commit b6f8081

Browse files
committed
Add refresh button to admin webhooks page
1 parent 89afab4 commit b6f8081

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/routes/(authenticated)/admin/webhooks/+page.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script lang="ts">
2+
import { RotateCcw } from '@lucide/svelte';
23
import type { SortingState } from '@tanstack/table-core';
34
import type { ColumnDef } from '@tanstack/table-core';
45
import { adminApi } from '$lib/api';
@@ -55,6 +56,10 @@
5556
<CardTitle class="flex items-center justify-between space-x-2 text-3xl">
5657
Webhooks
5758
<Button onclick={() => (addDialogOpen = true)}>Add new</Button>
59+
<Button class="text-xl" onclick={fetchWebhooks}>
60+
<RotateCcw />
61+
<span> Refresh </span>
62+
</Button>
5863
</CardTitle>
5964
</CardHeader>
6065
<div class="w-full p-6 gap-6 grid">

0 commit comments

Comments
 (0)