Browse Source

sync 0000

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6229/head
Raju Udava 1 year ago
parent
commit
af663c4a12
  1. 5
      packages/nc-gui/composables/useSharedFormViewStore.ts
  2. 1
      packages/nc-gui/store/views.ts

5
packages/nc-gui/composables/useSharedFormViewStore.ts

@ -9,7 +9,6 @@ import type {
LinkToAnotherRecordType, LinkToAnotherRecordType,
StringOrNullType, StringOrNullType,
TableType, TableType,
ViewType,
} from 'nocodb-sdk' } from 'nocodb-sdk'
import { ErrorMessages, RelationTypes, UITypes, isLinksOrLTAR, isVirtualCol } from 'nocodb-sdk' import { ErrorMessages, RelationTypes, UITypes, isLinksOrLTAR, isVirtualCol } from 'nocodb-sdk'
import { isString } from '@vue/shared' import { isString } from '@vue/shared'
@ -28,6 +27,7 @@ import {
useMetas, useMetas,
useProject, useProject,
useProvideSmartsheetRowStore, useProvideSmartsheetRowStore,
useViewsStore,
watch, watch,
} from '#imports' } from '#imports'
import type { SharedViewMeta } from '#imports' import type { SharedViewMeta } from '#imports'
@ -41,9 +41,10 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share
const passwordError = ref<string | null>(null) const passwordError = ref<string | null>(null)
const secondsRemain = ref(0) const secondsRemain = ref(0)
const { sharedView } = storeToRefs(useViewsStore())
provide(SharedViewPasswordInj, password) provide(SharedViewPasswordInj, password)
const sharedView = ref<ViewType>()
const sharedFormView = ref<FormType>() const sharedFormView = ref<FormType>()
const meta = ref<TableType>() const meta = ref<TableType>()
const columns = const columns =

1
packages/nc-gui/store/views.ts

@ -129,6 +129,7 @@ export const useViewsStore = defineStore('viewsStore', () => {
activeView, activeView,
openedViewsTab, openedViewsTab,
onViewsTabChange, onViewsTabChange,
sharedView,
} }
}) })

Loading…
Cancel
Save