mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-08 18:30:54 +00:00
reset isSaving before closing file edit modal
This commit is contained in:
parent
817c580b36
commit
8f0bae7ba4
1 changed files with 2 additions and 1 deletions
|
|
@ -175,12 +175,13 @@ const model = {
|
|||
await this.onSaveSuccess();
|
||||
}
|
||||
|
||||
// Reset isSaving before closing so beforeCloseFileEditor() allows it
|
||||
this.isSaving = false;
|
||||
this.closeFileEditor();
|
||||
} catch (error) {
|
||||
const message = error?.message || "Failed to save file";
|
||||
this.editSaveError = message;
|
||||
window.toastFrontendError(message, "Save File Error");
|
||||
} finally {
|
||||
this.isSaving = false;
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue