This commit is contained in:
2020-06-16 20:23:27 +00:00
parent fc170618c4
commit 76bb170c08
2 changed files with 24 additions and 7 deletions

View File

@@ -1,17 +1,23 @@
/* Xeslint-disable */
function addNavItem(title, icon, route, navItems, key, testid) {
function addNavItem(title, icon, route, navItems, key, testid, color = null) {
if (!testid) {
testid = route;
}
window.$gz.store.commit("addNavItem", {
let o = {
title,
icon,
route,
navItems,
key: key,
testid: testid
});
};
if (color != null) {
o["color"] = color;
}
window.$gz.store.commit("addNavItem", o);
}
function initNavPanel() {
@@ -737,7 +743,8 @@ function initNavPanel() {
"/ay-evaluate",
[],
key++,
"evaluate"
"evaluate",
"secondary"
);
window.$gz.store.commit("setHomePage", "/ay-evaluate");
}