mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
introduction of refreshWithNote
This commit is contained in:
@@ -130,17 +130,9 @@ export default class NoteTitleWidget extends TabAwareWidget {
|
||||
return this.$widget;
|
||||
}
|
||||
|
||||
async refresh() {
|
||||
async refreshWithNote() {
|
||||
const note = this.tabContext.note;
|
||||
|
||||
if (!note) {
|
||||
this.toggle(false);
|
||||
return;
|
||||
}
|
||||
else {
|
||||
this.toggle(true);
|
||||
}
|
||||
|
||||
this.$noteTitle.val(note.title);
|
||||
|
||||
if (note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable()) {
|
||||
|
||||
Reference in New Issue
Block a user