fix: show saving status when editing note for the first time
This commit is contained in:
@@ -195,11 +195,15 @@ class EditorViewCtrl extends PureViewCtrl<{}, EditorState> {
|
|||||||
if (!this.editorValues.text) {
|
if (!this.editorValues.text) {
|
||||||
this.editorValues.text = note.text;
|
this.editorValues.text = note.text;
|
||||||
}
|
}
|
||||||
if (note.lastSyncBegan && note.lastSyncEnd) {
|
if (note.lastSyncBegan) {
|
||||||
if (note.lastSyncBegan!.getTime() > note.lastSyncEnd!.getTime()) {
|
if (note.lastSyncEnd) {
|
||||||
this.showSavingStatus()
|
if (note.lastSyncBegan!.getTime() > note.lastSyncEnd!.getTime()) {
|
||||||
} else if (note.lastSyncEnd!.getTime() > note.lastSyncBegan!.getTime()) {
|
this.showSavingStatus()
|
||||||
this.showAllChangesSavedStatus();
|
} else if (note.lastSyncEnd!.getTime() > note.lastSyncBegan!.getTime()) {
|
||||||
|
this.showAllChangesSavedStatus();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.showSavingStatus();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user