Browse Source

fix(gui-v2): show hint if provided

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3188/head
Pranav C 2 years ago
parent
commit
0d49ace210
  1. 2
      packages/nc-gui-v2/components/shared-view/Form.vue

2
packages/nc-gui-v2/components/shared-view/Form.vue

@ -99,6 +99,7 @@ function isRequired(_columnObj: Record<string, any>, required = false) {
</div>
<div v-if="isVirtualCol(field)" class="mt-0">
<SmartsheetVirtualCell class="mt-0 nc-input" :column="field" />
<div class="text-gray-500 text-[10px] mb-2 ml-1" v-if="field.description">{{ field.description }}</div>
<template v-if="v$.virtual.$dirty && v$.virtual?.[field.title]">
<div v-for="error of v$.virtual[field.title].$errors" :key="error" class="text-xs text-red-500">
{{ error.$message }}
@ -112,6 +113,7 @@ function isRequired(_columnObj: Record<string, any>, required = false) {
:column="field"
:edit-enabled="true"
/>
<div class="text-gray-500 text-[10px] mb-2 ml-1" v-if="field.description">{{ field.description }}</div>
<template v-if="v$.localState.$dirty && v$.localState?.[field.title]">
<div v-for="error of v$.localState[field.title].$errors" :key="error" class="text-xs text-red-500">
{{ error.$message }}

Loading…
Cancel
Save