widgetizing promoted attributes

This commit is contained in:
zadam
2020-01-13 20:25:56 +01:00
parent 657d01da95
commit 8b9c235465
5 changed files with 274 additions and 254 deletions

View File

@@ -9,6 +9,7 @@ import server from "./server.js";
import keyboardActionService from "./keyboard_actions.js";
import TabRowWidget from "./tab_row.js";
import NoteTitleWidget from "../widgets/note_title.js";
import PromotedAttributesWidget from "../widgets/promoted_attributes.js";
class AppContext {
constructor() {
@@ -28,6 +29,9 @@ class AppContext {
$("#global-menu-wrapper").after(contents);
this.promotedAttributes = new PromotedAttributesWidget(this);
$("#center-pane").prepend(this.promotedAttributes.render());
this.noteTitleWidget = new NoteTitleWidget(this);
$("#center-pane").prepend(this.noteTitleWidget.render());
@@ -47,6 +51,7 @@ class AppContext {
}
this.widgets.push(this.noteTitleWidget);
this.widgets.push(this.promotedAttributes);
}
trigger(name, data) {