Full text search improvements

This commit is contained in:
Zef Hemel
2022-10-22 20:23:54 +02:00
parent 02dd2f17c7
commit 9164b57a3e
6 changed files with 55 additions and 15 deletions
+2 -1
View File
@@ -278,7 +278,8 @@ export class Editor {
this.saveTimeout = setTimeout(
() => {
if (this.currentPage) {
if (!this.viewState.unsavedChanges) {
if (!this.viewState.unsavedChanges || this.viewState.forcedROMode) {
// No unsaved changes, or read-only mode, not gonna save
return resolve();
}
console.log("Saving page", this.currentPage);