Browse Source

fix(nc-gui): prefill link search params copy issue

pull/7786/head
Ramesh Mane 8 months ago
parent
commit
d4459884b1
  1. 4
      packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue
  2. 2
      packages/nc-gui/components/smartsheet/Form.vue
  3. 2
      packages/nc-gui/store/views.ts

4
packages/nc-gui/components/dlg/share-and-collaborate/SharePage.vue

@ -209,7 +209,7 @@ function sharedViewUrl() {
return encodeURI(
`${dashboardUrl1}#/nc/${viewType}/${activeView.value.uuid}${surveyMode.value ? '/survey' : ''}${
formPreFill.value.preFillEnabled && viewStore.preFillFormSearchParams ? `?${viewStore.preFillFormSearchParams}` : ''
viewStore.preFillFormSearchParams && formPreFill.value.preFillEnabled ? `?${viewStore.preFillFormSearchParams}` : ''
}`,
)
}
@ -291,6 +291,8 @@ async function updateSharedView() {
async function savePreFilledMode() {
await updateSharedView()
}
watchEffect(() => {})
</script>
<template>

2
packages/nc-gui/components/smartsheet/Form.vue

@ -564,6 +564,8 @@ onMounted(async () => {
if (imageCropperData.value.src) {
URL.revokeObjectURL(imageCropperData.value.imageConfig.src)
}
preFillFormSearchParams.value = ''
isLoadingFormView.value = true
await loadFormView()

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

@ -284,8 +284,6 @@ export const useViewsStore = defineStore('viewsStore', () => {
if (!view) return
if (!view.base_id) return
preFillFormSearchParams.value = ''
const tableName = tablesStore.baseTables.get(view.base_id)?.find((t) => t.id === view.fk_model_id)?.title
const baseName = bases.basesList.find((p) => p.id === view.base_id)?.title

Loading…
Cancel
Save