From 8f5ac4af88231a3f551d2fe921daa296f3ce563e Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 10 Jun 2023 00:49:15 +0530 Subject: [PATCH] feat: add links option with LTAR and in edit Signed-off-by: Pranav C --- .../smartsheet/column/EditOrAdd.vue | 8 +++- .../smartsheet/column/LinkOptions.vue | 46 +++++++++++++++++++ .../column/LinkedToAnotherRecordOptions.vue | 6 +++ packages/nocodb/src/helpers/columnHelpers.ts | 22 +++++++-- .../nocodb/src/services/columns.service.ts | 3 ++ 5 files changed, 79 insertions(+), 6 deletions(-) create mode 100644 packages/nc-gui/components/smartsheet/column/LinkOptions.vue diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index 9f0cf0a7e6..04ee586e35 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue @@ -58,7 +58,7 @@ const advancedDbOptions = ref(false) const columnToValidate = [UITypes.Email, UITypes.URL, UITypes.PhoneNumber] -const onlyNameUpdateOnEditColumns = [UITypes.LinkToAnotherRecord, UITypes.Lookup, UITypes.Rollup] +const onlyNameUpdateOnEditColumns = [UITypes.LinkToAnotherRecord, UITypes.Lookup, UITypes.Rollup, UITypes.Links] const geoDataToggleCondition = (t: { name: UITypes }) => { return betaFeatureToggleState.show ? betaFeatureToggleState.show : !t.name.includes(UITypes.GeoData) @@ -209,7 +209,11 @@ useEventListener('keydown', (e: KeyboardEvent) => { + diff --git a/packages/nc-gui/components/smartsheet/column/LinkOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkOptions.vue new file mode 100644 index 0000000000..0e5df58ba3 --- /dev/null +++ b/packages/nc-gui/components/smartsheet/column/LinkOptions.vue @@ -0,0 +1,46 @@ + + + diff --git a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue index 368aebec78..716d74108d 100644 --- a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue @@ -85,6 +85,12 @@ const filterOption = (value: string, option: { key: string }) => option.key.toLo + + + +