Files
windmill/frontend/src/lib/components/flows/content/FlowModuleDeleteAfterUse.svelte
Guillaume Bouvignies b65657d0f8 feat: Add possibility to delete flow step results when the flow is complete (#2806)
* feat: Add possibility to delete flow step results when the flow is complete

* Add third layer of tabs and gate feature to EE
2023-12-08 21:30:44 +01:00

46 lines
1.2 KiB
Svelte

<script lang="ts">
import Toggle from '$lib/components/Toggle.svelte'
import Tooltip from '$lib/components/Tooltip.svelte'
import type { FlowModule } from '$lib/gen'
import Section from '$lib/components/Section.svelte'
export let flowModule: FlowModule
export let disabled: boolean = false
</script>
<Section label="Delete after use">
<svelte:fragment slot="header">
<Tooltip>
The logs, arguments and results of this flow step will be completely deleted from Windmill
once the flow is complete. They might be temporarily visible in UI while the flow is running.
<br />
This also applies to a flow step that has failed: the error will not be accessible.
<br />
<br />
The deletion is irreversible.
{#if disabled}
<br />
<br />
This option is only available on Windmill Enterprise Edition.
{/if}
</Tooltip>
</svelte:fragment>
<Toggle
{disabled}
size="sm"
checked={Boolean(flowModule.delete_after_use)}
on:change={() => {
if (flowModule.delete_after_use) {
flowModule.delete_after_use = undefined
} else {
flowModule.delete_after_use = true
}
}}
options={{
right: 'Delete logs, arguments and results after the flow is complete'
}}
/>
</Section>