|
|
@ -9,13 +9,12 @@ import { useNuxtApp } from '#app' |
|
|
|
export function useKanbanViewData( |
|
|
|
export function useKanbanViewData( |
|
|
|
meta: Ref<TableType> | ComputedRef<TableType> | undefined, |
|
|
|
meta: Ref<TableType> | ComputedRef<TableType> | undefined, |
|
|
|
viewMeta: Ref<ViewType & { id: string }> | ComputedRef<ViewType & { id: string }> | undefined, |
|
|
|
viewMeta: Ref<ViewType & { id: string }> | ComputedRef<ViewType & { id: string }> | undefined, |
|
|
|
where?: ComputedRef<string | undefined>, |
|
|
|
|
|
|
|
) { |
|
|
|
) { |
|
|
|
const { t } = useI18n() |
|
|
|
const { t } = useI18n() |
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
const isPublic = inject(IsPublicInj, ref(false)) |
|
|
|
const { api } = useApi() |
|
|
|
const { api } = useApi() |
|
|
|
const { project } = useProject() |
|
|
|
const { project } = useProject() |
|
|
|
const { $api, $e } = useNuxtApp() |
|
|
|
const { $api } = useNuxtApp() |
|
|
|
const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() |
|
|
|
const { sorts, nestedFilters } = useSmartsheetStoreOrThrow() |
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
const { isUIAllowed } = useUIPermission() |
|
|
|
const groupingFieldColOptions = useState<Record<string, any>[]>('KanbanGroupingFieldColOptions', () => []) |
|
|
|
const groupingFieldColOptions = useState<Record<string, any>[]>('KanbanGroupingFieldColOptions', () => []) |
|
|
@ -190,7 +189,7 @@ export function useKanbanViewData( |
|
|
|
return formattedData.value.Uncategorized[addAfter] |
|
|
|
return formattedData.value.Uncategorized[addAfter] |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
watch(groupingField, async (v) => await loadKanbanData()) |
|
|
|
watch(groupingField, async () => await loadKanbanData()) |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
loadKanbanData, |
|
|
|
loadKanbanData, |
|
|
|