mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 08:02:26 +00:00
handle revert to static better for apps
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
import { computeGlobalContext, eval_like } from './eval'
|
||||
import InputValue from './InputValue.svelte'
|
||||
import RefreshButton from './RefreshButton.svelte'
|
||||
import { selectId } from '../../editor/appUtils'
|
||||
import { clearErrorByComponentId, selectId } from '../../editor/appUtils'
|
||||
|
||||
// Component props
|
||||
export let id: string
|
||||
@@ -365,6 +365,9 @@
|
||||
|
||||
onDestroy(() => {
|
||||
$initialized.initializedComponents = $initialized.initializedComponents.filter((c) => c !== id)
|
||||
$errorByComponent = clearErrorByComponentId(id, $errorByComponent)
|
||||
delete $runnableComponents[id]
|
||||
$runnableComponents = $runnableComponents
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
+6
-1
@@ -24,7 +24,12 @@
|
||||
{#if componentInput.fieldType !== 'any'}
|
||||
<div class="w-full">
|
||||
<div class="mx-auto" bind:clientWidth>
|
||||
<ToggleButtonGroup on:selected={() => onchange?.()} bind:selected={componentInput.type}>
|
||||
<ToggleButtonGroup
|
||||
on:selected={() => {
|
||||
onchange?.()
|
||||
}}
|
||||
bind:selected={componentInput.type}
|
||||
>
|
||||
{#if componentInput.fieldType === 'template'}
|
||||
<ToggleButton
|
||||
tooltip={`Templated string (use \$\{<output>.x\} )`}
|
||||
|
||||
Reference in New Issue
Block a user