empty widget type works

This commit is contained in:
zadam
2020-01-19 11:20:02 +01:00
parent 746181689f
commit adb9ce5e93
7 changed files with 86 additions and 62 deletions

View File

@@ -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()) {