Skip to content

Commit

Permalink
don't show anything if no webhooks found
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Jan 13, 2024
1 parent 26d9617 commit 96b4b78
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/lib/analysis/Results.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,15 @@
class="flex flex-col items-center gap-4 overflow-hidden rounded-lg bg-primary-container p-4 text-on-primary-container"
>
<h2 class="m3-font-title-large">Webhooks</h2>
{#if webhooksNuked}
<p>Webhooks have been nuked</p>
{:else}
{#each webhooks as webhook}
<a href={webhook} target="_blank">{webhook}</a>
{/each}
<Button type="text" on:click={nukeWebhooks}>Nuke webhooks</Button>
{#if webhooks.size > 0}
{#if webhooksNuked}
<p>Webhooks have been nuked</p>
{:else}
{#each webhooks as webhook}
<a href={webhook} target="_blank">{webhook}</a>
{/each}
<Button type="text" on:click={nukeWebhooks}>Nuke webhooks</Button>
{/if}
{/if}
</div>
{:else}
Expand Down

0 comments on commit 96b4b78

Please sign in to comment.