mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 08:00:45 +00:00
replaceState on deploy
This commit is contained in:
@@ -155,6 +155,7 @@
|
||||
}
|
||||
loadingSave = false
|
||||
$dirtyStore = false
|
||||
window.history.replaceState(window.history.state, '', `/flows/edit/${flow.path}`)
|
||||
goto(`/flows/get/${$flowStore.path}?workspace=${$workspaceStore}`)
|
||||
} catch (err) {
|
||||
sendUserToast(`The flow could not be saved: ${err.body}`, true)
|
||||
|
||||
@@ -149,6 +149,7 @@
|
||||
tag: script.tag
|
||||
}
|
||||
})
|
||||
history.replaceState(history.state, '', `/scripts/edit/${script.path}`)
|
||||
goto(`/scripts/get/${newHash}?workspace=${$workspaceStore}`)
|
||||
} catch (error) {
|
||||
sendUserToast(`Error while saving the script: ${error.body || error.message}`, true)
|
||||
|
||||
Reference in New Issue
Block a user