mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-21 00:02:23 +00:00
fix reload
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
import IconedPath from '$lib/components/IconedPath.svelte'
|
||||
import { ScriptService, type FlowModule, type PathScript } from '$lib/gen'
|
||||
import { workspaceStore } from '$lib/stores'
|
||||
import { Lock, Unlock } from 'lucide-svelte'
|
||||
import { Lock, RefreshCw, Unlock } from 'lucide-svelte'
|
||||
import { createEventDispatcher } from 'svelte'
|
||||
|
||||
export let flowModule: FlowModule | undefined = undefined
|
||||
@@ -18,7 +18,6 @@
|
||||
path: value.path
|
||||
})
|
||||
latestHash = script.hash
|
||||
dispatch('reload')
|
||||
}
|
||||
|
||||
const dispatch = createEventDispatcher()
|
||||
@@ -56,6 +55,7 @@
|
||||
if (flowModule?.value.type == 'script') {
|
||||
flowModule.value.hash = latestHash
|
||||
}
|
||||
dispatch('reload')
|
||||
}}>Update to latest hash</Button
|
||||
>
|
||||
{/if}
|
||||
@@ -82,6 +82,14 @@
|
||||
}
|
||||
}}><Lock size={12} />hash</Button
|
||||
>
|
||||
<Button
|
||||
title="Reload latest hash"
|
||||
size="xs"
|
||||
color="light"
|
||||
on:click={() => dispatch('reload')}
|
||||
>
|
||||
<RefreshCw size={12} /></Button
|
||||
>
|
||||
{/if}
|
||||
<input bind:value={flowModule.summary} placeholder="Summary" class="w-full grow" />
|
||||
{:else if flowModule?.value.type === 'flow'}
|
||||
|
||||
Reference in New Issue
Block a user