touch protected session during note update

This commit is contained in:
zadam
2020-04-25 11:09:07 +02:00
parent ac608b9334
commit 71d248cd87
6 changed files with 18 additions and 7 deletions

View File

@@ -29,6 +29,8 @@ export default class NoteTitleWidget extends TabAwareWidget {
this.spacedUpdate = new SpacedUpdate(async () => {
const title = this.$noteTitle.val();
protectedSessionHolder.touchProtectedSessionIfNecessary(this.note);
await server.put(`notes/${this.noteId}/change-title`, {title});
});
}