Browse Source

fix/fixed rebase regressions

pull/3083/head
Muhammed Mustafa 2 years ago
parent
commit
64f62be536
  1. 6
      packages/nc-gui-v2/components/smartsheet/Grid.vue
  2. 4
      packages/nc-gui-v2/components/smartsheet/Toolbar.vue

6
packages/nc-gui-v2/components/smartsheet/Grid.vue

@ -82,9 +82,7 @@ const {
} = useViewData(meta, view as any, xWhere)
const { loadGridViewColumns, updateWidth, resizingColWidth, resizingCol } = useGridViewColumnWidth(view as any)
onMounted(() => {
loadGridViewColumns()
})
onMounted(loadGridViewColumns)
provide(IsFormInj, ref(false))
@ -97,8 +95,8 @@ provide(ChangePageInj, changePage)
provide(ReadonlyInj, !isUIAllowed('xcDatatableEditable'))
reloadViewDataHook?.on(async () => {
loadAggCommentsCount()
await loadData()
loadAggCommentsCount()
})
const selectCell = (row: number, col: number) => {

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

@ -8,7 +8,7 @@ const isPublic = inject(IsPublicInj, ref(false))
</script>
<template>
<div class="nc-table-toolbar w-full py-1 flex gap-1 items-center" style="z-index: 7">
<div class="nc-table-toolbar w-full py-1 flex gap-1 items-center h-[48px] px-2 border-b" style="z-index: 7">
<SmartsheetToolbarFieldsMenu v-if="isGrid || isGallery" :show-system-fields="false" class="ml-1" />
<SmartsheetToolbarColumnFilterMenu v-if="isGrid || isGallery" />
@ -19,7 +19,7 @@ const isPublic = inject(IsPublicInj, ref(false))
<SmartsheetToolbarMoreActions v-if="(isGrid && !isPublic) || (isGrid && isPublic && allowCSVDownload)" />
<div class="flex-1" />
<SmartsheetToolbarSearchData v-if="isGrid || isGallery" class="shrink mr-2" />
<SmartsheetToolbarSearchData v-if="(isGrid || isGallery) && !isPublic" class="shrink mr-2" />
</div>
</template>

Loading…
Cancel
Save