mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-14 08:02:58 +00:00
fix: persist hidden languages in edit default scripts drawer (#11693)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7bbe03227d
commit
aeeeb042f9
@@ -33,6 +33,10 @@
|
||||
;[norder[i], norder[i + 1]] = [norder[i + 1], norder[i]]
|
||||
}
|
||||
defaultScripts.update((s) => ({ ...s, order: norder }))
|
||||
await persist()
|
||||
}
|
||||
|
||||
async function persist() {
|
||||
await WorkspaceService.editDefaultScripts({
|
||||
workspace: $operatingWorkspace!,
|
||||
requestBody: $defaultScripts
|
||||
@@ -78,7 +82,7 @@
|
||||
size="xs"
|
||||
color="red"
|
||||
checked={$defaultScripts?.hidden?.includes(lang)}
|
||||
on:change={(e) => {
|
||||
on:change={async (e) => {
|
||||
let toggled = e.detail
|
||||
if (toggled) {
|
||||
defaultScripts.update((s) => ({
|
||||
@@ -91,6 +95,7 @@
|
||||
hidden: (s?.hidden ?? []).filter((h) => h != lang)
|
||||
}))
|
||||
}
|
||||
await persist()
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user