From 4f8fd18a39a5d5e6e07d41cfe24fe23e125b4c9c Mon Sep 17 00:00:00 2001 From: mdatelle Date: Thu, 31 Jul 2025 14:28:53 -0400 Subject: [PATCH] refactor: use Drawer component for mobile view navigation --- web/components/LayoutViews/Detail/Detail.vue | 79 ++---- .../Detail/DetailContentHeader.vue | 12 +- .../Detail/DetailLeftNavigation.vue | 242 +++++++++++++----- .../LayoutViews/Detail/DetailRightContent.vue | 2 +- 4 files changed, 201 insertions(+), 134 deletions(-) diff --git a/web/components/LayoutViews/Detail/Detail.vue b/web/components/LayoutViews/Detail/Detail.vue index c29839d58..31f5bad7e 100644 --- a/web/components/LayoutViews/Detail/Detail.vue +++ b/web/components/LayoutViews/Detail/Detail.vue @@ -51,7 +51,6 @@ const selectedTab = ref(props.defaultTabKey || '0'); const selectedItems = ref([]); const expandedGroups = ref>({}); const autostartEnabled = ref(true); -const sidebarOpen = ref(false); // Initialize expanded state for groups const initializeExpandedState = () => { @@ -127,76 +126,28 @@ const handleManageSelectedAction = (action: string) => { const handleManageItemAction = (action: string) => { console.log('Manage item action:', action); }; - -const toggleSidebar = () => { - sidebarOpen.value = !sidebarOpen.value; -}; - -const closeSidebar = () => { - sidebarOpen.value = false; -};