mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-20 06:06:16 +01:00
add function syntax to sveltestrap onclick events and others
- fixes event_handler_invalid svelte warning and blockage
This commit is contained in:
@@ -137,7 +137,7 @@
|
||||
<CardBody>
|
||||
<CardTitle>Generate JWT</CardTitle>
|
||||
{#if jwt}
|
||||
<Button color="secondary" on:click={clipJwt()}>
|
||||
<Button color="secondary" on:click={() => clipJwt()}>
|
||||
Copy JWT to Clipboard
|
||||
</Button>
|
||||
<p class="mt-2">
|
||||
@@ -149,7 +149,7 @@
|
||||
</p>
|
||||
{/if}
|
||||
{:else}
|
||||
<Button color="success" on:click={getUserJwt(username)}>
|
||||
<Button color="success" on:click={() => getUserJwt(username)}>
|
||||
Generate JWT for '{username}'
|
||||
</Button>
|
||||
<p class="mt-2">
|
||||
|
||||
Reference in New Issue
Block a user