Browse Source

chore(nc-gui): remove unnecessary opts

pull/3664/head
braks 2 years ago
parent
commit
5ede6ee764
  1. 3
      packages/nc-gui/components/smartsheet/sidebar/index.vue
  2. 2
      packages/nc-gui/components/smartsheet/sidebar/toolbar/ToggleDrawer.vue

3
packages/nc-gui/components/smartsheet/sidebar/index.vue

@ -35,7 +35,7 @@ const { $e } = useNuxtApp()
provide(ViewListInj, views)
/** Sidebar visible */
const { isOpen } = useSidebar('nc-right-sidebar', { useStorage: true, isOpen: true })
const { isOpen } = useSidebar('nc-right-sidebar', { isOpen: true })
const sidebarCollapsed = computed(() => !isOpen.value)
@ -110,6 +110,7 @@ function onCreate(view: ViewType) {
class="relative shadow-md h-full"
theme="light"
>
{{ isOpen }}
<Toolbar
v-if="isOpen"
class="min-h-[var(--toolbar-height)] max-h-[var(--toolbar-height)] flex items-center py-3 px-3 justify-between border-b-1"

2
packages/nc-gui/components/smartsheet/sidebar/toolbar/ToggleDrawer.vue

@ -1,6 +1,6 @@
<script setup lang="ts">
/** Sidebar visible */
const { isOpen, toggle } = useSidebar('nc-right-sidebar', { isOpen: true })
const { isOpen, toggle } = useSidebar('nc-right-sidebar')
const onClick = () => {
toggle(!isOpen.value)

Loading…
Cancel
Save