mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
work on navbar
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user