mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 10:55:55 +01:00
note complement is now loaded through tree cache
This commit is contained in:
@@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user