mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-25 16:03:47 +00:00
fix: remove nodraft from all edit links
This commit is contained in:
@@ -363,11 +363,7 @@
|
||||
>
|
||||
Open
|
||||
</Button>
|
||||
<Button
|
||||
href={`/apps/edit/${item.path}?no_draft=true`}
|
||||
target="_blank"
|
||||
startIcon={{ icon: Edit }}
|
||||
>
|
||||
<Button href={`/apps/edit/${item.path}`} target="_blank" startIcon={{ icon: Edit }}>
|
||||
Edit
|
||||
</Button>
|
||||
{/snippet}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
variant="subtle"
|
||||
wrapperClasses="w-20"
|
||||
startIcon={{ icon: Pen }}
|
||||
href="{base}/apps{app.raw_app ? '_raw' : ''}/edit/{app.path}?nodraft=true"
|
||||
href="{base}/apps{app.raw_app ? '_raw' : ''}/edit/{app.path}"
|
||||
>
|
||||
Edit
|
||||
</Button>
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
aiId={`flow-row-${flow.path}`}
|
||||
aiDescription={`Button to access the form to run the flow ${flow.summary ?? flow.path}`}
|
||||
href={flow.draft_only
|
||||
? `${base}/flows/edit/${flow.path}?nodraft=true`
|
||||
? `${base}/flows/edit/${flow.path}`
|
||||
: `${base}/flows/get/${flow.path}?workspace=${$workspaceStore}`}
|
||||
kind="flow"
|
||||
workspaceId={flow.workspace_id ?? $workspaceStore ?? ''}
|
||||
|
||||
@@ -9,13 +9,13 @@ export function buildForkEditUrl(itemType: ItemType, itemPath: string): string {
|
||||
editPath = `${base}/scripts/edit/${itemPath}`
|
||||
break
|
||||
case 'flow':
|
||||
editPath = `${base}/flows/edit/${itemPath}?nodraft=true`
|
||||
editPath = `${base}/flows/edit/${itemPath}`
|
||||
break
|
||||
case 'app':
|
||||
editPath = `${base}/apps/edit/${itemPath}?nodraft=true`
|
||||
editPath = `${base}/apps/edit/${itemPath}`
|
||||
break
|
||||
case 'raw_app':
|
||||
editPath = `${base}/apps_raw/edit/${itemPath}?nodraft=true`
|
||||
editPath = `${base}/apps_raw/edit/${itemPath}`
|
||||
break
|
||||
}
|
||||
return `${base}/user/fork_workspace?rd=${encodeURIComponent(editPath)}`
|
||||
|
||||
@@ -341,7 +341,7 @@
|
||||
buttons.push({
|
||||
label: 'Edit',
|
||||
buttonProps: {
|
||||
href: `${base}/flows/edit/${path}?nodraft=true`,
|
||||
href: `${base}/flows/edit/${path}`,
|
||||
variant: 'accent',
|
||||
unifiedSize: 'md',
|
||||
disabled: !can_write || !showEditButtons,
|
||||
|
||||
@@ -676,7 +676,7 @@
|
||||
{#if !$userStore?.operator}
|
||||
{#if canWrite(job?.script_path ?? '', {}, $userStore)}
|
||||
<Button
|
||||
href={`${stem}/edit/${job?.script_path}?workspace=${$workspaceStore}${isScript ? `` : `&nodraft=true`}`}
|
||||
href={`${stem}/edit/${job?.script_path}?workspace=${$workspaceStore}`}
|
||||
on:click={() => {
|
||||
$initialArgsStore = job?.args
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user