mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-10-03 21:14:30 +02:00
add function syntax to sveltestrap onclick events and others
- fixes event_handler_invalid svelte warning and blockage
This commit is contained in:
@@ -76,7 +76,7 @@
|
||||
<a href="/monitoring/job/{job.id}" target="_blank">{job.jobId}</a>
|
||||
({job.cluster})
|
||||
</span>
|
||||
<Button id={`${job.cluster}-${job.jobId}-clipboard`} outline color="secondary" size="sm" on:click={clipJobId(job.jobId)} >
|
||||
<Button id={`${job.cluster}-${job.jobId}-clipboard`} outline color="secondary" size="sm" on:click={() => clipJobId(job.jobId)} >
|
||||
{#if displayCheck}
|
||||
<Icon name="clipboard2-check-fill"/>
|
||||
{:else}
|
||||
|
@@ -29,13 +29,13 @@
|
||||
<div class="cc-pagination-right">
|
||||
{#if !backButtonDisabled}
|
||||
<button aria-label="page-reset" class="reset nav" type="button"
|
||||
on:click|preventDefault="{reset}"></button>
|
||||
on:click|preventDefault={() => reset}></button>
|
||||
<button aria-label="page-back" class="left nav" type="button"
|
||||
on:click|preventDefault="{() => { page -= 1; }}"></button>
|
||||
on:click|preventDefault={() => { page -= 1; }}></button>
|
||||
{/if}
|
||||
{#if !nextButtonDisabled}
|
||||
<button aria-label="page-up" class="right nav" type="button"
|
||||
on:click|preventDefault="{() => { page += 1; }}"></button>
|
||||
on:click|preventDefault={() => { page += 1; }}></button>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user