mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
fix on navigate for new workflows
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user