various fixes and small refactorings

This commit is contained in:
zadam
2020-02-03 21:56:45 +01:00
parent 44ddcdd852
commit b757dfcf79
22 changed files with 41 additions and 87 deletions

View File

@@ -30,10 +30,9 @@ export default class NoteTitleWidget extends TabAwareWidget {
super(appContext);
this.spacedUpdate = new SpacedUpdate(async () => {
const noteId = this.tabContext.note.noteId;
const title = this.$noteTitle.val();
await server.put(`notes/${noteId}/change-title`, {title});
await server.put(`notes/${this.noteId}/change-title`, {title});
});
}