Skip to content

Commit 787a297

Browse files
authored
fix(editor): reset edit state after not saving content (#8474)
Refs #8461
1 parent 6b37938 commit 787a297

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • frontend/src/views/host/file-management/code-editor

frontend/src/views/host/file-management/code-editor/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,7 @@ const handleClose = () => {
328328
saveContent();
329329
})
330330
.finally(() => {
331+
isEdit.value = false;
331332
closeEditor();
332333
});
333334
} else {

0 commit comments

Comments
 (0)