More work on database manager

This commit is contained in:
Pax1601
2023-09-27 17:08:15 +02:00
parent e9100504a0
commit 7a24e5d39d
11 changed files with 294 additions and 92 deletions

View File

@@ -191,7 +191,7 @@ export class OlympusApp {
// Toolbars
this.getToolbarsManager().add("primaryToolbar", new PrimaryToolbar("primary-toolbar"))
.add("commandModeToolbar", new PrimaryToolbar("command-mode-toolbar"));
.add("commandModeToolbar", new CommandModeToolbar("command-mode-toolbar"));
this.#pluginsManager = new PluginsManager();

View File

@@ -2,12 +2,16 @@ import { Dropdown } from "../controls/dropdown";
import { Toolbar } from "./toolbar";
export class PrimaryToolbar extends Toolbar {
#mainDropdown: Dropdown;
constructor(ID: string) {
super(ID);
// TODO move here all code about primary toolbar
/* The content of the dropdown is entirely defined in the .ejs file */
new Dropdown("app-icon", () => { });
this.#mainDropdown = new Dropdown("app-icon", () => { });
}
getMainDropdown() {
return this.#mainDropdown;
}
}