work on navbar

This commit is contained in:
Géry Debongnie
2019-02-05 08:56:33 +01:00
parent 05e9797f7a
commit 52d855241d
14 changed files with 138 additions and 59 deletions
-11
View File
@@ -36,9 +36,6 @@ export interface Env extends WEnv {
// registries
actionRegistry: Registry<ActionWidget>;
// data
menus: Menu[];
// helpers
rpc: IAjax["rpc"];
@@ -72,12 +69,6 @@ export const makeEnvironment = memoize(async function(): Promise<Env> {
const actionManager = new ActionManager(actionRegistry);
const notifications = new NotificationManager();
// demo data
const menus = [
{ title: "Discuss", actionID: 1 },
{ title: "CRM", actionID: 2 }
];
// templates
const result = await fetch("templates.xml");
if (!result.ok) {
@@ -98,8 +89,6 @@ export const makeEnvironment = memoize(async function(): Promise<Env> {
actionRegistry,
router,
menus,
rpc: ajax.rpc,
debug: false,