fix on navigate for new workflows

This commit is contained in:
Laila Los
2024-01-19 11:39:48 +01:00
parent 8506769a30
commit 1fa3328a7e
@@ -688,11 +688,14 @@ export default {
const runUrl = `/workflows/run?id=${this.id}`;
this.onNavigate(runUrl);
},
onNavigate(url) {
this.onSave(true).then(() => {
this.hasChanges = false;
this.$router.push(url);
});
async onNavigate(url) {
if (this.isNewTempWorkflow) {
await this.onCreate();
}
await this.onSave(true);
this.hasChanges = false;
this.$router.push(url);
},
onSave(hideProgress = false) {
if (!this.nameValidate()) {