Files
windmill/frontend/src/lib/components/itemSettings/MuteErrorHandlerSetting.svelte
T
0249bb94ac refactor: harmonize flow and script settings layout (#12013)
* refactor: harmonize flow and script settings layout

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: keep the priority input open while it is edited

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: keep settings rows open while edited and name the deploying user for non-admins

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: write a setting before its row opens and show its real state while edited

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: slide settings rows open to their full height

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: remount a settings row's fields when its toggle turns it on

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* fix: put the AI prompt behind a settings toggle

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* feat: summarize active runtime and permission settings on the metadata tab

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor: move the active settings chips into the settings header

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: bring back the active setting icons on the settings tabs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
2026-10-27 01:24:09 +01:00

44 lines
1.3 KiB
Svelte

<script lang="ts">
import { toggleWorkspaceErrorHandler } from '$lib/components/details/errorHandlerToggle'
import { useOperatingWorkspace } from '$lib/components/operatingWorkspace.svelte'
import { enterpriseLicense } from '$lib/stores'
import SettingToggle from './SettingToggle.svelte'
interface Props {
kind: 'flow' | 'script'
path: string
/** Also sent with the next deploy. */
muted: boolean | undefined
}
let { kind, path, muted = $bindable() }: Props = $props()
const operatingWorkspace = useOperatingWorkspace()
// The toggle shows the click until the request settles, then the muted state it left.
let pending: boolean | undefined = $state(undefined)
async function toggle() {
const next = await toggleWorkspaceErrorHandler($operatingWorkspace, kind, path, muted)
if (next !== undefined) muted = next
pending = undefined
}
</script>
{#snippet eeHint()}
Enterprise Edition only.
{/snippet}
<SettingToggle
setting="mute-error-handler"
label="Mute workspace error handler"
tooltip={`Failures of this ${kind} do not trigger the workspace error handler. Applies to the deployed ${kind} right away.`}
documentationLink="https://www.windmill.dev/docs/core_concepts/error_handling#workspace-error-handler"
checked={pending ?? !!muted}
onchange={(on) => {
pending = on
toggle()
}}
hint={$enterpriseLicense ? undefined : eeHint}
/>