Added note text only mode

This commit is contained in:
Mitchell McCaffrey
2021-01-25 10:03:20 +11:00
parent 55b9be4e2d
commit feb803ebef
5 changed files with 63 additions and 12 deletions

View File

@@ -304,6 +304,20 @@ function loadVersions(db) {
}
});
});
// 1.7.1 - Added note text only mode
db.version(18)
.stores({})
.upgrade((tx) => {
return tx
.table("states")
.toCollection()
.modify((state) => {
for (let id in state.notes) {
state.notes[id].textOnly = false;
}
});
});
}
// Get the dexie database used in DatabaseContext