Browse Source

feat(nc-gui): add isKanban in useSmartsheetStore

pull/3818/head
Wing-Kam Wong 2 years ago
parent
commit
95544ddb3a
  1. 4
      packages/nc-gui/composables/useSmartsheetStore.ts

4
packages/nc-gui/composables/useSmartsheetStore.ts

@ -28,8 +28,9 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
const isPkAvail = computed(() => meta?.value?.columns?.some((c) => c.pk)) const isPkAvail = computed(() => meta?.value?.columns?.some((c) => c.pk))
const isGrid = computed(() => (view?.value as any)?.type === ViewTypes.GRID) const isGrid = computed(() => (view?.value as any)?.type === ViewTypes.GRID)
const isForm = computed(() => (view?.value as any)?.type === ViewTypes.FORM) const isForm = computed(() => (view?.value as any)?.type === ViewTypes.FORM)
const isSharedForm = computed(() => isForm?.value && shared)
const isGallery = computed(() => (view?.value as any)?.type === ViewTypes.GALLERY) const isGallery = computed(() => (view?.value as any)?.type === ViewTypes.GALLERY)
const isKanban = computed(() => (view?.value as any)?.type === ViewTypes.KANBAN)
const isSharedForm = computed(() => isForm?.value && shared)
const xWhere = computed(() => { const xWhere = computed(() => {
let where let where
const col = meta?.value?.columns?.find(({ id }) => id === search.field) || meta?.value?.columns?.find((v) => v.pv) const col = meta?.value?.columns?.find(({ id }) => id === search.field) || meta?.value?.columns?.find((v) => v.pv)
@ -60,6 +61,7 @@ const [useProvideSmartsheetStore, useSmartsheetStore] = useInjectionState(
isForm, isForm,
isGrid, isGrid,
isGallery, isGallery,
isKanban,
cellRefs, cellRefs,
isSharedForm, isSharedForm,
sorts, sorts,

Loading…
Cancel
Save