Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): add info icon and link to doc for limit by view as well

Ramesh Mane3160ec36795f
diff --git a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
index 0eff0307ed..6c4939d7de 100644
--- a/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/LinkedToAnotherRecordOptions.vue
@@ -503,11 +503,20 @@ const handleScrollIntoView = () => {
></a-switch>
<span
v-e="['c:link:limit-record-by-view', { status: limitRecToView }]"
- class="text-s cursor-pointer"
+ class="cursor-pointer inline-flex items-center gap-1"
data-testid="nc-limit-record-view"
@click="onViewLabelClick"
- >{{ $t('labels.limitRecordSelectionToView') }}</span
>
+ {{ $t('labels.limitRecordSelectionToView') }}
+
+ <a
+ href="https://nocodb.com/docs/product-docs/fields/field-types/links-based/links#limit-by-view"
+ target="_blank"
+ @click.stop
+ class="flex text-nc-content-gray-disabled hover:text-nc-content-gray-subtle"
+ >
+ <GeneralIcon icon="ncInfo" class="flex-none w-3.5 h-3.5" /> </a
+ ></span>
</div>
<a-form-item v-if="limitRecToView" class="!pl-8 flex w-full pb-2 mt-4 space-y-2 nc-ltar-child-view">
<NcSelect