From 79d986b9eca086edda5d458b6328b53ba02bd53a Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 1 Jul 2024 14:33:07 +0200 Subject: [PATCH] perf: remove warnings --- src/components/LeftMenu.vue | 3 --- src/components/NavBar.vue | 3 --- src/pages/Entry/MyEntries.vue | 8 -------- 3 files changed, 14 deletions(-) diff --git a/src/components/LeftMenu.vue b/src/components/LeftMenu.vue index 51e99808b..213c08d7e 100644 --- a/src/components/LeftMenu.vue +++ b/src/components/LeftMenu.vue @@ -9,7 +9,6 @@ import { toLowerCamel } from 'src/filters'; import routes from 'src/router/modules'; import LeftMenuItem from './LeftMenuItem.vue'; import LeftMenuItemGroup from './LeftMenuItemGroup.vue'; -import { useRole } from 'src/composables/useRole'; const { t } = useI18n(); const route = useRoute(); @@ -59,7 +58,6 @@ function addChildren(module, route, parent) { } const items = ref([]); -const role = useRole(); function getRoutes() { if (props.source === 'main') { @@ -70,7 +68,6 @@ function getRoutes() { (route) => toLowerCamel(route.name) === item.module ); if (!moduleDef) continue; - // if (!role.isEmployee()) continue; item.children = []; addChildren(item.module, moduleDef, item.children); diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue index 980cae5b8..3051e8b99 100644 --- a/src/components/NavBar.vue +++ b/src/components/NavBar.vue @@ -1,7 +1,6 @@