mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-10-02 20:54:32 +02:00
format cleanup component arguments
This commit is contained in:
@@ -51,19 +51,19 @@
|
||||
<ModalFooter>
|
||||
<Button
|
||||
color="primary"
|
||||
on:click={() => {
|
||||
onclick={() => {
|
||||
isOpen = false;
|
||||
setFilter({ energy: energyState });
|
||||
}}>Close & Apply</Button
|
||||
>
|
||||
<Button
|
||||
color="danger"
|
||||
on:click={() => {
|
||||
onclick={() => {
|
||||
isOpen = false;
|
||||
energyState = {from: null, to: null};
|
||||
setFilter({ energy: energyState });
|
||||
}}>Reset</Button
|
||||
>
|
||||
<Button on:click={() => (isOpen = false)}>Close</Button>
|
||||
<Button onclick={() => (isOpen = false)}>Close</Button>
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
|
@@ -99,7 +99,7 @@
|
||||
</ListGroup>
|
||||
</ModalBody>
|
||||
<ModalFooter>
|
||||
<Button color="primary" on:click={() => closeAndApply()}>Close & Apply</Button>
|
||||
<Button color="secondary" on:click={() => (isOpen = !isOpen)}>Close</Button>
|
||||
<Button color="primary" onclick={() => closeAndApply()}>Close & Apply</Button>
|
||||
<Button color="secondary" onclick={() => (isOpen = !isOpen)}>Close</Button>
|
||||
</ModalFooter>
|
||||
</Modal>
|
||||
|
@@ -174,8 +174,9 @@
|
||||
{/if}
|
||||
{#each listedMetrics as metric, index (metric)}
|
||||
<li
|
||||
draggable
|
||||
class="cc-config-column list-group-item"
|
||||
draggable={true}
|
||||
class:is-active={columnHovering === index}
|
||||
ondragover={(event) => {
|
||||
event.preventDefault()
|
||||
return false
|
||||
@@ -188,7 +189,6 @@
|
||||
columnsDrag(event, index)
|
||||
}}
|
||||
ondragenter={() => (columnHovering = index)}
|
||||
class:is-active={columnHovering === index}
|
||||
>
|
||||
{#if pendingMetrics.includes(metric)}
|
||||
<input
|
||||
|
Reference in New Issue
Block a user