mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 00:02:13 +00:00
nodraft for editing flow from run
This commit is contained in:
@@ -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}`}
|
||||
|
||||
Reference in New Issue
Block a user