Browse Source

fix(gui-v2): sidebar showing when collapsed

pull/2728/head
braks 2 years ago
parent
commit
24d42c3172
  1. 3
      packages/nc-gui-v2/app.vue
  2. 2
      packages/nc-gui-v2/pages/index/index.vue

3
packages/nc-gui-v2/app.vue

@ -16,7 +16,7 @@ const signOut = () => {
const toggleSidebar = useToggle($state.sidebarOpen)
const sidebarOpen = computed({
get: () => $state.sidebarOpen.value ?? true,
get: () => !($state.sidebarOpen.value ?? true),
set: (val) => toggleSidebar(val),
})
</script>
@ -88,7 +88,6 @@ const sidebarOpen = computed({
<a-layout-sider
v-model:collapsed="sidebarOpen"
width="300"
breakpoint="md"
collapsed-width="0"
class="bg-white dark:!bg-gray-800 border-r-1 border-gray-200 dark:!border-gray-600 h-full"
:trigger="null"

2
packages/nc-gui-v2/pages/index/index.vue

@ -34,7 +34,7 @@ const navDrawerOptions = [
const route = useRoute()
const { $api, $state } = useNuxtApp()
const { $api } = useNuxtApp()
const toast = useToast()
const response = await $api.project.list({})

Loading…
Cancel
Save