mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
introduction of refreshWithNote
This commit is contained in:
@@ -35,14 +35,9 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
|
||||
return this.$widget;
|
||||
}
|
||||
|
||||
async refresh() {
|
||||
async refreshWithNote() {
|
||||
this.$container.empty();
|
||||
|
||||
if (!this.tabContext.note) {
|
||||
this.toggle(false);
|
||||
return;
|
||||
}
|
||||
|
||||
const attributes = await this.tabContext.attributes.getAttributes();
|
||||
|
||||
const promoted = attributes.filter(attr =>
|
||||
|
||||
Reference in New Issue
Block a user