This commit is contained in:
2020-01-03 19:01:35 +00:00
parent db9d259b4a
commit d08ff54187
2 changed files with 68 additions and 46 deletions

View File

@@ -402,57 +402,64 @@ export default function initialize() {
);
//****************** OPERATIONS
//clear sublevel array
sub = [];
if (
window.$gz.role.hasRole([
window.$gz.role.AUTHORIZATION_ROLES.OpsAdminFull,
window.$gz.role.AUTHORIZATION_ROLES.OpsAdminLimited
])
) {
//clear sublevel array
sub = [];
// ARCHIVE
sub.push({
title: window.$gz.locale.get("Backup"),
icon: "file-archive",
route: "/ops-backup",
key: key++
});
// ARCHIVE
sub.push({
title: window.$gz.locale.get("Backup"),
icon: "file-archive",
route: "/ops-backup",
key: key++
});
// JOBS
sub.push({
title: window.$gz.locale.get("ServerJobs"),
icon: "robot",
route: "/ops-jobs",
key: key++
});
// JOBS
sub.push({
title: window.$gz.locale.get("ServerJobs"),
icon: "robot",
route: "/ops-jobs",
key: key++
});
// LOGS
sub.push({
title: window.$gz.locale.get("ServerLog"),
icon: "history",
route: "/ops-log",
key: key++
});
// LOGS
sub.push({
title: window.$gz.locale.get("ServerLog"),
icon: "history",
route: "/ops-log",
key: key++
});
//METRICS
sub.push({
title: window.$gz.locale.get("ServerMetrics"),
icon: "file-medical-alt",
route: "/ops-metrics",
key: key++
});
//METRICS
sub.push({
title: window.$gz.locale.get("ServerMetrics"),
icon: "file-medical-alt",
route: "/ops-metrics",
key: key++
});
//NOTIFICATION CONFIG AND HISTORY
sub.push({
title: window.$gz.locale.get("NotificationSettings"),
icon: "bullhorn",
route: "/ops-notification-settings",
key: key++
});
//NOTIFICATION CONFIG AND HISTORY
sub.push({
title: window.$gz.locale.get("NotificationSettings"),
icon: "bullhorn",
route: "/ops-notification-settings",
key: key++
});
// ** OPERATIONS (TOP)
addNavItem(
window.$gz.locale.get("Operations"),
"server",
undefined,
sub,
key++
);
// ** OPERATIONS (TOP)
addNavItem(
window.$gz.locale.get("Operations"),
"server",
undefined,
sub,
key++
);
}
//**** WIDGETS (TOP GROUP)
addNavItem(