mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(editor): Prevent saving workflow while another save is in progress (#9048)
This commit is contained in:
committed by
GitHub
parent
744327c20d
commit
3c9a1d2da3
@@ -388,6 +388,10 @@ export default defineComponent({
|
||||
},
|
||||
methods: {
|
||||
async onSaveButtonClick() {
|
||||
// If the workflow is saving, do not allow another save
|
||||
if (this.isWorkflowSaving) {
|
||||
return;
|
||||
}
|
||||
let currentId = undefined;
|
||||
if (this.currentWorkflowId !== PLACEHOLDER_EMPTY_WORKFLOW_ID) {
|
||||
currentId = this.currentWorkflowId;
|
||||
@@ -497,11 +501,12 @@ export default defineComponent({
|
||||
cb(true);
|
||||
return;
|
||||
}
|
||||
|
||||
this.uiStore.addActiveAction('workflowSaving');
|
||||
const saved = await this.workflowHelpers.saveCurrentWorkflow({ name });
|
||||
if (saved) {
|
||||
this.isNameEditEnabled = false;
|
||||
}
|
||||
this.uiStore.removeActiveAction('workflowSaving');
|
||||
cb(saved);
|
||||
},
|
||||
async handleFileImport(): Promise<void> {
|
||||
|
||||
Reference in New Issue
Block a user