mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
empty widget type works
This commit is contained in:
@@ -133,6 +133,14 @@ export default class NoteTitleWidget extends TabAwareWidget {
|
||||
async refresh() {
|
||||
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