Skip to content

Commit

Permalink
updated menu items
Browse files Browse the repository at this point in the history
  • Loading branch information
Linko91 committed Aug 21, 2024
1 parent 5fd3e19 commit 81aae93
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"@types/inquirer": "^9.0.7",
"@types/jsdom": "^21.1.7",
"@types/lodash": "^4.17.7",
"@types/node": "^22.4.1",
"@types/node": "^22.5.0",
"@types/validator": "^13.12.0",
"@vitejs/plugin-vue": "^5.1.2",
"@vitejs/plugin-vue-jsx": "^4.0.1",
Expand Down
19 changes: 3 additions & 16 deletions frontend/src/layouts/common/Navbar/items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ const ConnectorsIcon = "carbon:hybrid-networking"
const GraylogIcon = "majesticons:pulse-line"
const AlertsIcon = "carbon:warning-hex"
const ArtifactsIcon = "carbon:document-multiple-01"
const SocIcon = "carbon:security"
// const SocIcon = "carbon:security"
const HealthcheckIcon = "ph:heartbeat"
const CustomersIcon = "carbon:user-multiple"
const UsersIcon = "carbon:group-security"
const ExternalServicesIcon = "carbon:ibm-cloud-direct-link-2-dedicated"
const ReportCreationIcon = "carbon:report-data"
const SchedulerIcon = "material-symbols:autoplay"
Expand Down Expand Up @@ -152,6 +151,7 @@ export default function getItems(): MenuMixedOption[] {
key: "Artifacts",
icon: renderIcon(ArtifactsIcon)
},
/*
{
label: "SOC",
key: "Soc",
Expand Down Expand Up @@ -211,6 +211,7 @@ export default function getItems(): MenuMixedOption[] {
}
]
},
*/
{
label: "Incident Management",
key: "IncidentManagement",
Expand Down Expand Up @@ -285,20 +286,6 @@ export default function getItems(): MenuMixedOption[] {
key: "Customers",
icon: renderIcon(CustomersIcon)
},
{
label: () =>
h(
RouterLink,
{
to: {
name: "Users"
}
},
{ default: () => "Users" }
),
key: "Users",
icon: renderIcon(UsersIcon)
},
{
label: "External Services",
key: "ExternalServices",
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/layouts/common/Toolbar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const LicenseIcon = "carbon:license"
const LogoutIcon = "ion:log-out-outline"
const LogsIcon = "carbon:cloud-logging"
const ContactIcon = "ic:outline-alternate-email"
const UsersIcon = "carbon:group-security"
const router = useRouter()
const authStore = useAuthStore()
Expand All @@ -33,6 +34,11 @@ const options = ref([
key: "route-License",
icon: renderIcon(LicenseIcon)
},
{
label: "Users",
key: "route-Users",
icon: renderIcon(UsersIcon)
},
{
label: "Logs",
key: "route-Logs",
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ const router = createRouter({
component: () => import("@/views/Artifacts.vue"),
meta: { title: "Artifacts", auth: true, roles: UserRole.All }
},
/*
{
path: "/soc",
redirect: "/soc/alerts",
Expand Down Expand Up @@ -126,6 +127,7 @@ const router = createRouter({
}
]
},
*/
{
path: "/incident-management",
redirect: "/incident-management/alerts",
Expand Down

0 comments on commit 81aae93

Please sign in to comment.