fix: correctly set note values when they change

This commit is contained in:
Baptiste Grob
2020-06-22 15:23:58 +02:00
parent d0088ba98b
commit 91b53d34bf

View File

@@ -191,6 +191,12 @@ class EditorViewCtrl extends PureViewCtrl implements EditorViewScope {
this.editorValues.text = note.text;
this.reloadTagsString();
}
if (!this.editorValues.title) {
this.editorValues.title = note.title;
}
if (!this.editorValues.text) {
this.editorValues.text = note.text;
}
if (note.lastSyncBegan && note.lastSyncEnd) {
if (note.lastSyncBegan!.getTime() > note.lastSyncEnd!.getTime()) {
this.showSavingStatus()