got rid of .renderTo(), tab caching widgets use hidden marker element

This commit is contained in:
zadam
2020-01-19 15:36:42 +01:00
parent 6de4914ea6
commit 416d733510
11 changed files with 59 additions and 79 deletions

View File

@@ -30,9 +30,7 @@ export default class NotePathsWidget extends TabAwareWidget {
return this.$widget;
}
async refreshWithNote() {
const {note, notePath} = this.tabContext;
async refreshWithNote(note, notePath) {
if (note.noteId === 'root') {
// root doesn't have any parent, but it's still technically 1 path