From 21c2ff8af923bd8d2b9a7b0d33371aaf5d7a4224 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 12 Jul 2024 18:22:06 +0000 Subject: [PATCH] fix: exclude unsupported columns --- .../column/LinkedToAnotherRecordOptions.vue | 22 ++++++++++++++++--- .../components/smartsheet/header/Menu.vue | 14 +++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue index ce5ce260e3..9b3d485414 100644 --- a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue @@ -47,9 +47,18 @@ if (!isEdit.value) { if (!vModel.value.onDelete) vModel.value.onDelete = onUpdateDeleteOptions[0] if (!vModel.value.virtual) vModel.value.virtual = sqlUi === SqliteUi // appInfo.isCloud || sqlUi === SqliteUi if (!vModel.value.alias) vModel.value.alias = vModel.value.column_name +} else { + if (!vModel.value.childId) + vModel.custom = { + ref_model_id: vModel.value?.colOptions?.fk_related_model_id, + base_id: meta.value?.base_id, + junc_base_id: meta.value?.base_id, + } + if (!vModel.value.childViewId) vModel.value.childViewId = vModel.value?.colOptions?.fk_target_view_id || null } if (!vModel.value.childId) vModel.value.childId = vModel.value?.colOptions?.fk_related_model_id || null if (!vModel.value.childViewId) vModel.value.childViewId = vModel.value?.colOptions?.fk_target_view_id || null +if (!vModel.value.type) vModel.value.type = vModel.value?.colOptions?.type || 'mm' const advancedOptions = ref(false) @@ -221,11 +230,18 @@ const handleShowAdvanceOptions = () => {
- + Advanced Link
-
- +
+