|
|
|
@ -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 |
|
|
|
|