mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-02-04 15:25:17 +01:00
Second onclick pass
This commit is contained in:
parent
aaafde4a7c
commit
8fcdd24f84
@ -114,13 +114,13 @@
|
||||
class="btn btn-primary"
|
||||
type="button"
|
||||
id="add-project-button"
|
||||
on:click|preventDefault={() => handleAddProject}>Add</button
|
||||
on:click|preventDefault={() => handleAddProject()}>Add</button
|
||||
>
|
||||
<button
|
||||
class="btn btn-danger"
|
||||
type="button"
|
||||
id="remove-project-button"
|
||||
on:click|preventDefault={() => handleRemoveProject}>Remove</button
|
||||
on:click|preventDefault={() => handleRemoveProject()}>Remove</button
|
||||
>
|
||||
</div>
|
||||
<p>
|
||||
|
@ -119,13 +119,13 @@
|
||||
class="btn btn-primary"
|
||||
type="button"
|
||||
id="add-role-button"
|
||||
on:click|preventDefault={() => handleAddRole}>Add</button
|
||||
on:click|preventDefault={() => handleAddRole()}>Add</button
|
||||
>
|
||||
<button
|
||||
class="btn btn-danger"
|
||||
type="button"
|
||||
id="remove-role-button"
|
||||
on:click|preventDefault={() =>handleRemoveRole}>Remove</button
|
||||
on:click|preventDefault={() =>handleRemoveRole()}>Remove</button
|
||||
>
|
||||
</div>
|
||||
<p>
|
||||
|
@ -63,7 +63,7 @@
|
||||
class="btn btn-primary"
|
||||
type="button"
|
||||
id="edit-notice-button"
|
||||
on:click|preventDefault={() => handleEditNotice}>Edit Notice</button
|
||||
on:click|preventDefault={() => handleEditNotice()}>Edit Notice</button
|
||||
>
|
||||
</div>
|
||||
<p>
|
||||
|
@ -33,7 +33,7 @@
|
||||
type="checkbox"
|
||||
id="scramble-names-checkbox"
|
||||
style="margin-right: 1em;"
|
||||
on:click={() => handleScramble}
|
||||
on:click={() => handleScramble()}
|
||||
bind:checked={scrambled}
|
||||
/>
|
||||
Active?
|
||||
|
@ -53,7 +53,7 @@
|
||||
<Button
|
||||
color="secondary"
|
||||
size="sm"
|
||||
on:click={() => reloadUserList}
|
||||
on:click={() => reloadUserList()}
|
||||
style="float: right;">Reload</Button
|
||||
>
|
||||
</p>
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user