From 8f0bae7ba456c5b6ca087ec7967cd5a2e81620bc Mon Sep 17 00:00:00 2001 From: 3clyp50 Date: Sun, 1 Feb 2026 20:27:23 +0100 Subject: [PATCH] reset isSaving before closing file edit modal --- webui/components/modals/file-editor/file-editor-store.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webui/components/modals/file-editor/file-editor-store.js b/webui/components/modals/file-editor/file-editor-store.js index d8aff4b89..b78d8eaf9 100644 --- a/webui/components/modals/file-editor/file-editor-store.js +++ b/webui/components/modals/file-editor/file-editor-store.js @@ -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; } },