Browse Source

chore(gui-v2): rename sidebarOpen to sidebarCollapsed in app.vue

pull/2837/head
braks 2 years ago
parent
commit
edd6c5e853
  1. 6
      packages/nc-gui-v2/app.vue

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

@ -19,13 +19,13 @@ const signOut = () => {
navigateTo('/signin')
}
const sidebarOpen = computed({
const sidebarCollapsed = computed({
get: () => !$state.sidebarOpen.value,
set: (val) => ($state.sidebarOpen.value = !val),
})
const toggleSidebar = () => {
sidebarOpen.value = !sidebarOpen.value
sidebarCollapsed.value = !sidebarCollapsed.value
}
</script>
@ -84,7 +84,7 @@ const toggleSidebar = () => {
<a-layout>
<a-layout-sider
v-model:collapsed="sidebarOpen"
v-model:collapsed="sidebarCollapsed"
width="300"
collapsed-width="0"
class="bg-white dark:!bg-gray-800 border-r-1 border-gray-200 dark:!border-gray-600 h-full"

Loading…
Cancel
Save