From 94d60e40d05d2e2055b2ca6e1573ff15e16e859c Mon Sep 17 00:00:00 2001 From: achichenkov Date: Mon, 16 Dec 2024 12:42:24 +0300 Subject: [PATCH] feat(Map): Fixed incorrect wrapping labels of checkboxes in System Signatures, Local and Routes. Also changed dotlan links for k-spacem now it leads to region map before, for wh all stay as it was. Added ability to chane to softer background and remove dots on background of map. Also some small design issues. #2 --- .../ContextMenuSystem/useContextMenuSystemItems.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/assets/js/hooks/Mapper/components/contexts/ContextMenuSystem/useContextMenuSystemItems.tsx b/assets/js/hooks/Mapper/components/contexts/ContextMenuSystem/useContextMenuSystemItems.tsx index d2ccd35b..851eb2a2 100644 --- a/assets/js/hooks/Mapper/components/contexts/ContextMenuSystem/useContextMenuSystemItems.tsx +++ b/assets/js/hooks/Mapper/components/contexts/ContextMenuSystem/useContextMenuSystemItems.tsx @@ -8,6 +8,7 @@ import { useWaypointMenu } from '@/hooks/Mapper/components/contexts/hooks'; import { FastSystemActions } from '@/hooks/Mapper/components/contexts/components'; import { useMapCheckPermissions } from '@/hooks/Mapper/mapRootProvider/hooks/api'; import { UserPermission } from '@/hooks/Mapper/types/permissions.ts'; +import { isWormholeSpace } from '@/hooks/Mapper/components/map/helpers/isWormholeSpace.ts'; export const useContextMenuSystemItems = ({ onDeleteSystem, @@ -32,6 +33,9 @@ export const useContextMenuSystemItems = ({ return useMemo(() => { const system = systemId ? getSystemById(systems, systemId) : undefined; + // eslint-disable-next-line no-console + console.log('JOipP', `system`, system); + if (!system || !systemId) { return []; } @@ -44,6 +48,8 @@ export const useContextMenuSystemItems = ({