From 20ef97927951ffabacd7938b5878224182c1cba2 Mon Sep 17 00:00:00 2001 From: EdwinBetanc0urt Date: Thu, 25 Jul 2024 01:27:27 -0400 Subject: [PATCH] fix imports --- src/router/modules/ADempiere/menu.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/router/modules/ADempiere/menu.js b/src/router/modules/ADempiere/menu.js index 6d773ff4bde..1527bd83941 100644 --- a/src/router/modules/ADempiere/menu.js +++ b/src/router/modules/ADempiere/menu.js @@ -22,7 +22,7 @@ import store from '@/store' import Layout from '@/layout' // Constants -import staticRoutes from '@/router/modules/ADempiere/staticRoutes.js' +import STATIC_ROUTES from '@/router/modules/ADempiere/staticRoutes.js' import { NOTICE_WINDOW_ID } from '@/utils/ADempiere/dictionary/dashboard' // API Request Methods @@ -31,7 +31,7 @@ import { requestMenu } from '@/api/ADempiere/security/index.ts' // Utils and Helper Methods import { convertAction } from '@/utils/ADempiere/dictionary/menu' import { getCurrentOrganization } from '@/utils/ADempiere/auth' -import { isEmptyValue, recursiveTreeSearch } from '@/utils/ADempiere' +import { isEmptyValue, recursiveTreeSearch } from '@/utils/ADempiere/valueUtils' /** * Get Menu from server @@ -101,7 +101,7 @@ export function loadMainMenu({ }) const permiseStactiRoutes = hidenStaticRoutes({ dynamicRoutes: asyncRoutesMap, - staticRoutes, + staticRoutes: STATIC_ROUTES, permiseRole: role }) const menuRoutes = permiseStactiRoutes @@ -115,7 +115,7 @@ export function loadMainMenu({ console.error(`Error getting menu: ${error.message}. Code: ${error.code}.`) const permiseStactiRoutes = hidenStaticRoutes({ dynamicRoutes: [], - staticRoutes, + staticRoutes: STATIC_ROUTES, permiseRole: role }) const menuRoutes = permiseStactiRoutes