mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	widgetizing promoted attributes
This commit is contained in:
		| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user