mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 10:15:52 +01:00
use lazy title loading in bookmarks buttons to have decrypted title upon protected session start, #2393
This commit is contained in:
@@ -18,7 +18,12 @@ export default class OpenNoteButtonWidget extends ButtonWidget {
|
||||
}
|
||||
|
||||
this.icon(note.getIcon());
|
||||
this.title(note.title);
|
||||
this.title(() => {
|
||||
const n = froca.getNoteFromCache(noteId);
|
||||
|
||||
// always fresh, always decoded (when protected session is available)
|
||||
return n.title;
|
||||
});
|
||||
|
||||
this.refreshIcon();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user