introduction of refreshWithNote

This commit is contained in:
zadam
2020-01-19 11:37:24 +01:00
parent adb9ce5e93
commit 9f1e777e6d
16 changed files with 49 additions and 44 deletions

View File

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