|
|
@ -20,7 +20,7 @@ export function useKanbanViewData( |
|
|
|
const { project } = useProject() |
|
|
|
const { project } = useProject() |
|
|
|
const { $e, $api } = useNuxtApp() |
|
|
|
const { $e, $api } = useNuxtApp() |
|
|
|
const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() |
|
|
|
const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() |
|
|
|
const { sharedView, fetchSharedViewData } = useSharedView() |
|
|
|
const { sharedView, fetchSharedViewData, fetchSharedViewGroupedData } = useSharedView() |
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
@ -83,7 +83,7 @@ export function useKanbanViewData( |
|
|
|
let res |
|
|
|
let res |
|
|
|
|
|
|
|
|
|
|
|
if (isPublic.value) { |
|
|
|
if (isPublic.value) { |
|
|
|
// TODO: we need a public API for groupedDataList instead of fetchSharedViewData
|
|
|
|
res = await fetchSharedViewGroupedData(groupingFieldColumn!.value!.id!) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
res = await api.dbViewRow.groupedDataList( |
|
|
|
res = await api.dbViewRow.groupedDataList( |
|
|
|
'noco', |
|
|
|
'noco', |
|
|
|