mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 00:02:19 +00:00
improve flow renaming
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
if (leave) {
|
||||
goto(`/flows/get/${$flowStore.path}?workspace_id=${$workspaceStore}`)
|
||||
} else if (initialPath !== $flowStore.path) {
|
||||
initialPath = $flowStore.path
|
||||
goto(`/flows/edit/${$flowStore.path}?workspace_id=${$workspaceStore}`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
|
||||
let selectedId: string = 'settings-metadata'
|
||||
|
||||
let initialPath: string = ''
|
||||
|
||||
async function loadFlow(): Promise<void> {
|
||||
loading = true
|
||||
let flow: Flow
|
||||
@@ -52,7 +50,6 @@
|
||||
}
|
||||
|
||||
await initFlow(flow, flowStore, flowStateStore)
|
||||
initialPath = flow.path
|
||||
loading = false
|
||||
selectedId = stateLoadedFromUrl?.selectedId
|
||||
$dirtyStore = false
|
||||
@@ -65,4 +62,11 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<FlowBuilder {flowStore} {flowStateStore} {initialPath} {selectedId} {initialArgs} {loading} />
|
||||
<FlowBuilder
|
||||
{flowStore}
|
||||
{flowStateStore}
|
||||
initialPath={$page.params.path}
|
||||
{selectedId}
|
||||
{initialArgs}
|
||||
{loading}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user