This commit is contained in:
2021-10-29 19:34:12 +00:00
parent f3c660a07d
commit 7fa054dec9
2 changed files with 8 additions and 2 deletions

View File

@@ -86,7 +86,7 @@
<div class="pl-3" :key="subitem.key">
<v-list-item
:to="subitem.route"
:data-cy="'nav' + subitem.route"
:data-cy="'nav' + subitem.testid"
>
<v-list-item-action>
<v-icon

View File

@@ -14,6 +14,11 @@ function addNavItem(title, icon, route, navItems, key, testid, color = null) {
if (color != null) {
o["color"] = color;
}
o.navItems.forEach(z => {
if (z.testid == null) {
z.testid = z.route;
}
});
window.$gz.store.commit("addNavItem", o);
}
@@ -245,7 +250,8 @@ function initNavPanel() {
title: "History",
icon: "$ayiHistory",
route: `/history/3/${window.$gz.store.state.userId}/true`,
key: key++
key: key++,
testid: "/home-history"
});
//HOME