nodraft for editing flow from run

This commit is contained in:
Ruben Fiszel
2023-01-24 22:57:34 +01:00
parent cf6846f9ab
commit 5d101ab0f3
2 changed files with 6 additions and 2 deletions
@@ -174,7 +174,7 @@
</Button>
{#if !$userStore?.operator}
<Button
href="/flows/edit/{path}?nodraft=true&args=${encodeState(args)}"
href="/flows/edit/{path}?nodraft=true&args={encodeState(args)}"
variant="contained"
color="blue"
size="md"
@@ -168,7 +168,11 @@
{@const editHref = `${stem}/edit/${route}${
isScript
? `?step=2${job?.args ? `&args=${encodeURIComponent(encodeState(job?.args))}` : ''}`
: `${job?.args ? `?args=${encodeURIComponent(encodeState(job?.args))}` : ''}`
: `${
job?.args
? `?args=${encodeURIComponent(encodeState(job?.args))}&nodraft=true`
: '?nodraft=true'
}`
}`}
{@const isRunning = job && 'running' in job && job.running}
{@const viewHref = `${stem}/get/${isScript ? job?.script_hash : job?.script_path}`}