Second onclick pass

This commit is contained in:
Christoph Kluge
2025-02-04 12:52:56 +01:00
parent aaafde4a7c
commit 8fcdd24f84
9 changed files with 11 additions and 11 deletions

View File

@@ -107,7 +107,7 @@
placeholder={presetProject ? `Find ${mode} in ${scrambleNames ? scramble(presetProject) : presetProject} ...` : `Find ${mode} ...`}
/>
{#if presetProject}
<Button title="Reset Project" on:click={() => resetProject}
<Button title="Reset Project" on:click={() => resetProject()}
><Icon name="arrow-counterclockwise" /></Button
>
{/if}

View File

@@ -29,7 +29,7 @@
<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>
{/if}

View File

@@ -88,7 +88,7 @@
</ListGroup>
</ModalBody>
<ModalFooter>
<Button color="primary" on:click={() => closeAndApply}>Close & Apply</Button>
<Button color="primary" on:click={() => closeAndApply()}>Close & Apply</Button>
<Button color="secondary" on:click={() => (isOpen = !isOpen)}>Close</Button>
</ModalFooter>
</Modal>

View File

@@ -188,7 +188,7 @@
</ListGroup>
</ModalBody>
<ModalFooter>
<Button color="primary" on:click={() => closeAndApply}>Close & Apply</Button>
<Button color="primary" on:click={() => closeAndApply()}>Close & Apply</Button>
<Button color="secondary" on:click={() => (isOpen = !isOpen)}>Cancel</Button>
</ModalFooter>
</Modal>