mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-12-03 16:10:37 +00:00
refactor: apply a bulk level in the Hub scripts editor without a filter
This commit is contained in:
@@ -132,11 +132,6 @@
|
||||
onchange(next)
|
||||
}
|
||||
|
||||
function setMany(names: string[], to: Level) {
|
||||
const changed = names.filter((n) => level(n) !== to)
|
||||
if (changed.length > 0) apply(changed, to)
|
||||
}
|
||||
|
||||
const changes = $derived.by(() => {
|
||||
const names = Array.from(new Set([...Object.keys(saved), ...Object.keys(value)]))
|
||||
const count = (f: (n: string) => boolean) => names.filter(f).length
|
||||
@@ -345,7 +340,7 @@
|
||||
tooltip={LEVEL_TOOLTIPS[to]}
|
||||
small
|
||||
{item}
|
||||
onActivate={() => setMany(selection, to)}
|
||||
onActivate={() => apply(selection, to)}
|
||||
/>
|
||||
{/each}
|
||||
{/snippet}
|
||||
|
||||
Reference in New Issue
Block a user