work on menu data/home menu/navbar/routing

This commit is contained in:
Géry Debongnie
2019-02-04 13:23:41 +01:00
parent b292a66523
commit 70b25fc7b8
14 changed files with 162 additions and 74 deletions
@@ -3,7 +3,7 @@
exports[`can be rendered 1`] = `
"<div class=\\"o_home_menu\\">
<div class=\\"o_apps\\">
<a href=\\"#\\" class=\\"o_app\\">
<a href=\\"#menu_id=14&amp;action_id=43\\" class=\\"o_app\\">
<i class=\\"fa fa-test o_app_icon fa-3x fa-fw\\"></i>
<div class=\\"o_caption\\">
Demo
@@ -3,33 +3,20 @@
exports[`can be rendered 1`] = `
"<div class=\\"o_navbar\\">
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
<ul>
</ul>
</div>"
`;
exports[`can render one menu item 1`] = `
"<div class=\\"o_navbar\\">
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
<ul>
<li>
<a href=\\"\\">
menu
</a>
</li>
</ul>
</div>"
`;
exports[`mobile mode: navbar is different 1`] = `
"<div class=\\"o_navbar\\">
<a aria-label=\\"Applications\\" class=\\"o_title fa fa-th\\" href=\\"#\\" title=\\"Applications\\" accesskey=\\"h\\"></a>
<ul>
<li>MOBILEMODE</li>
</ul>
</div>"
`;
+3 -1
View File
@@ -28,7 +28,9 @@ beforeEach(() => {
parent_id: false,
action: false,
icon: "fa fa-test",
children: []
children: [],
menuId: 14,
actionId: 43
}
},
roots: [14]
+1 -1
View File
@@ -19,7 +19,7 @@ beforeEach(() => {
fixture = makeTestFixture();
env = makeTestEnv();
env.qweb.loadTemplates(templates);
props = { inHome: false };
props = { inHome: false, app: null };
});
afterEach(() => {