diff --git a/packages/client/src/App.vue b/packages/client/src/App.vue index 8232566c..a7bc0587 100644 --- a/packages/client/src/App.vue +++ b/packages/client/src/App.vue @@ -8,14 +8,14 @@ useColorMode() const router = useRouter() const route = useRoute() const { connected } = useDevToolsState() -const clientState = useDevToolsClientState() +const clientState = devtoolsClientState const viewMode = inject>('viewMode', ref('overlay')) const viewModeSwitchVisible = computed(() => viewMode.value === 'overlay' && isInChromePanel) const { toggle } = useToggleViewMode() const isUtilityView = computed(() => route.path.startsWith('/__') || route.path === '/') -const sidebarExpanded = false +const sidebarExpanded = computed(() => clientState.value.expandSidebar) watch(connected, (v) => { if (v) { diff --git a/packages/client/src/components/common/SideNav.vue b/packages/client/src/components/common/SideNav.vue index 02f6e058..e3bedd06 100644 --- a/packages/client/src/components/common/SideNav.vue +++ b/packages/client/src/components/common/SideNav.vue @@ -6,11 +6,10 @@ const showMoreTabs = ref(false) const panel = ref() const buttonDocking = ref() const buttonMoreTabs = ref() -const sidebarExpanded = ref(false) +const sidebarExpanded = computed(() => devtoolsClientState.value.expandSidebar) const sidebarScrollable = ref(false) -// @TODO: dynamic tabs -const displayedTabs = builtinTab +const displayedTabs = categorizedTabs