Browse Source

Merge pull request #6254 from nocodb/fix-gallery-search

fix(nc-gui): search implemented for gallery view
pull/6277/head
Raju Udava 1 year ago committed by GitHub
parent
commit
a949194e50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/nc-gui/components/smartsheet/Gallery.vue

5
packages/nc-gui/components/smartsheet/Gallery.vue

@ -39,6 +39,7 @@ const reloadViewDataHook = inject(ReloadViewDataHookInj)
const openNewRecordFormHook = inject(OpenNewRecordFormHookInj, createEventHook())
const { isViewDataLoading } = storeToRefs(useViewsStore())
const { isSqlView, xWhere } = useSmartsheetStoreOrThrow()
const expandedFormDlg = ref(false)
const expandedFormRow = ref<RowType>()
@ -54,7 +55,7 @@ const {
addEmptyRow,
deleteRow,
navigateToSiblingRow,
} = useViewData(meta, view)
} = useViewData(meta, view, xWhere)
provide(IsFormInj, ref(false))
provide(IsGalleryInj, ref(true))
@ -85,8 +86,6 @@ const isRowEmpty = (record: any, col: any) => {
return Array.isArray(val) && val.length === 0
}
const { isSqlView } = useSmartsheetStoreOrThrow()
const { isUIAllowed } = useUIPermission()
const hasEditPermission = computed(() => isUIAllowed('xcDatatableEditable'))
// TODO: extract this code (which is duplicated in grid and gallery) into a separate component

Loading…
Cancel
Save