mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
note title widget and protected session entering fixes
This commit is contained in:
@@ -57,6 +57,10 @@ export default class NoteTitleWidget extends TabAwareWidget {
|
||||
|
||||
this.$noteTitle.prop("readonly", note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable());
|
||||
|
||||
this.setProtectedStatus(note);
|
||||
}
|
||||
|
||||
setProtectedStatus(note) {
|
||||
this.$noteTitle.toggleClass("protected", !!note.isProtected);
|
||||
}
|
||||
|
||||
@@ -88,7 +92,8 @@ export default class NoteTitleWidget extends TabAwareWidget {
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
if (loadResults.isNoteReloaded(this.noteId)) {
|
||||
this.refresh();
|
||||
// not updating the title specifically since the synced title might be older than what the user is currently typing
|
||||
this.setProtectedStatus(this.note);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user