mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
add attributes to the sidebar and remove them from the bottom
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import NoteInfoWidget from "../widgets/note_info.js";
|
||||
import LinkMapWidget from "../widgets/link_map.js";
|
||||
import NoteRevisionsWidget from "../widgets/note_revisions.js";
|
||||
import AttributesWidget from "../widgets/attributes.js";
|
||||
|
||||
const WIDGET_TPL = `
|
||||
<div class="card widget">
|
||||
@@ -47,11 +48,21 @@ class Sidebar {
|
||||
async noteLoaded() {
|
||||
this.$widgets.empty();
|
||||
|
||||
this.addAttributesWidget();
|
||||
this.addNoteInfoWidget();
|
||||
this.addLinkMapWidget();
|
||||
this.addNoteRevisionsWidget();
|
||||
}
|
||||
|
||||
async addAttributesWidget() {
|
||||
const $widget = this.createWidgetElement();
|
||||
|
||||
const attributesWidget = new AttributesWidget(this.ctx, $widget);
|
||||
await attributesWidget.renderBody();
|
||||
|
||||
this.$widgets.append($widget);
|
||||
}
|
||||
|
||||
async addNoteInfoWidget() {
|
||||
const $widget = this.createWidgetElement();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user