fix reload

This commit is contained in:
Ruben Fiszel
2023-12-07 18:36:39 +01:00
parent bb93bd8b89
commit eb8e75d519
@@ -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'}