note complement is now loaded through tree cache

This commit is contained in:
zadam
2020-02-01 18:29:18 +01:00
parent f0cbca2838
commit 0e13678f7c
8 changed files with 22 additions and 44 deletions

View File

@@ -34,13 +34,7 @@ export default class NoteTitleWidget extends TabAwareWidget {
const noteId = this.tabContext.note.noteId;
const title = this.$noteTitle.val();
const resp = await server.put(`notes/${noteId}/change-title`, {title});
// FIXME: minor - does not propagate to other tab contexts with this note though
this.tabContext.note.dateModified = resp.dateModified;
this.tabContext.note.utcDateModified = resp.utcDateModified;
this.trigger('noteChangesSaved', {noteId})
await server.put(`notes/${noteId}/change-title`, {title});
});
}