Browse Source

wip(gui-v2): add sidebar back in main view

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/2716/head
Pranav C 2 years ago
parent
commit
dd16a67e30
  1. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue
  2. 4
      packages/nc-gui-v2/components/smartsheet/Sidebar.vue
  3. 5
      packages/nc-gui-v2/components/tabs/Smartsheet.vue

2
packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue

@ -282,7 +282,7 @@ export default {
<template> <template>
<v-menu> <v-menu>
<template #activator="{ on }"> <template #activator="{ on }">
<v-badge :value="isAnyFieldHidden" color="primary" dot overlap> <v-badge :value="isAnyFieldHidden" color="primary" dot overlap v-on="on">
<v-btn <v-btn
v-t="['c:fields']" v-t="['c:fields']"
class="nc-fields-menu-btn px-2 nc-remove-border" class="nc-fields-menu-btn px-2 nc-remove-border"

4
packages/nc-gui-v2/components/smartsheet/Sidebar.vue

@ -1,8 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { inject } from '@vue/runtime-core'
import type { TableType } from 'nocodb-sdk' import type { TableType } from 'nocodb-sdk'
import type { Ref } from 'vue' import type { Ref } from 'vue'
import { onMounted } from 'vue' import { inject, onMounted, ref } from '#imports'
import { MetaInj } from '~/components' import { MetaInj } from '~/components'
import useViews from '~/composables/useViews' import useViews from '~/composables/useViews'
import { viewIcons } from '~/utils/viewUtils' import { viewIcons } from '~/utils/viewUtils'
@ -14,6 +13,7 @@ const _isUIAllowed = (view: string) => {}
onMounted(loadViews) onMounted(loadViews)
const selectedViewIdLocal = ref('') const selectedViewIdLocal = ref('')
const toggleDrawer = ref(false)
</script> </script>
<template> <template>

5
packages/nc-gui-v2/components/tabs/Smartsheet.vue

@ -30,7 +30,12 @@ watch(
<div class="overflow-auto"> <div class="overflow-auto">
<SmartsheetToolbar /> <SmartsheetToolbar />
<template v-if="meta && tabMeta"> <template v-if="meta && tabMeta">
<div class="d-flex">
<div class="flex-grow-1 min-w-0">
<SmartsheetGrid /> <SmartsheetGrid />
</div>
<SmartsheetSidebar />
</div>
</template> </template>
</div> </div>
</template> </template>

Loading…
Cancel
Save