From af663c4a121be75d3963bd60ffe29cf599cf1c81 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 24 Aug 2023 23:49:27 +0530 Subject: [PATCH] sync 0000 Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- packages/nc-gui/composables/useSharedFormViewStore.ts | 5 +++-- packages/nc-gui/store/views.ts | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/nc-gui/composables/useSharedFormViewStore.ts b/packages/nc-gui/composables/useSharedFormViewStore.ts index 29bd5bb549..1564e5f05d 100644 --- a/packages/nc-gui/composables/useSharedFormViewStore.ts +++ b/packages/nc-gui/composables/useSharedFormViewStore.ts @@ -9,7 +9,6 @@ import type { LinkToAnotherRecordType, StringOrNullType, TableType, - ViewType, } from 'nocodb-sdk' import { ErrorMessages, RelationTypes, UITypes, isLinksOrLTAR, isVirtualCol } from 'nocodb-sdk' import { isString } from '@vue/shared' @@ -28,6 +27,7 @@ import { useMetas, useProject, useProvideSmartsheetRowStore, + useViewsStore, watch, } from '#imports' import type { SharedViewMeta } from '#imports' @@ -41,9 +41,10 @@ const [useProvideSharedFormStore, useSharedFormStore] = useInjectionState((share const passwordError = ref(null) const secondsRemain = ref(0) + const { sharedView } = storeToRefs(useViewsStore()) + provide(SharedViewPasswordInj, password) - const sharedView = ref() const sharedFormView = ref() const meta = ref() const columns = diff --git a/packages/nc-gui/store/views.ts b/packages/nc-gui/store/views.ts index db5093522f..48ce6cff66 100644 --- a/packages/nc-gui/store/views.ts +++ b/packages/nc-gui/store/views.ts @@ -129,6 +129,7 @@ export const useViewsStore = defineStore('viewsStore', () => { activeView, openedViewsTab, onViewsTabChange, + sharedView, } })