mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
touch protected session during note update
This commit is contained in:
@@ -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});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user