Browse Source

refactor: placeholder correction

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/6323/head
Raju Udava 1 year ago committed by DarkPhoenix2704
parent
commit
29f024a498
  1. 2
      packages/nc-gui/components/cell/DatePicker.vue
  2. 2
      packages/nc-gui/components/cell/DateTimePicker.vue
  3. 2
      packages/nc-gui/components/cell/MultiSelect.vue
  4. 2
      packages/nc-gui/components/cell/SingleSelect.vue
  5. 2
      packages/nc-gui/components/cell/TimePicker.vue
  6. 2
      packages/nc-gui/components/cell/YearPicker.vue

2
packages/nc-gui/components/cell/DatePicker.vue

@ -84,7 +84,7 @@ watch(
const placeholder = computed(() => {
if (isEditColumn.value && modelValue === null) {
return 'Select default date (Optional)'
return '(Optional)'
} else if (modelValue === null && showNull.value) {
return 'NULL'
} else if (isDateInvalid.value) {

2
packages/nc-gui/components/cell/DateTimePicker.vue

@ -137,7 +137,7 @@ watch(
const placeholder = computed(() => {
if (isEditColumn.value && modelValue === null) {
return 'Select default date (Optional)'
return '(Optional)'
} else if (modelValue === null && showNull.value) {
return 'NULL'
} else if (isDateInvalid.value) {

2
packages/nc-gui/components/cell/MultiSelect.vue

@ -387,7 +387,7 @@ const selectedOpts = computed(() => {
v-model:value="vModel"
mode="multiple"
class="w-full overflow-hidden"
:placeholder="isEditColumn ? 'Select default value (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
:bordered="false"
clear-icon
show-search

2
packages/nc-gui/components/cell/SingleSelect.vue

@ -303,7 +303,7 @@ const selectedOpt = computed(() => {
v-model:value="vModel"
class="w-full overflow-hidden"
:class="{ 'caret-transparent': !hasEditRoles }"
:placeholder="isEditColumn ? 'Select default option (Optional)' : ''"
:placeholder="isEditColumn ? '(Optional)' : ''"
:allow-clear="!column.rqd && editAllowed"
:bordered="false"
:open="isOpen && editAllowed"

2
packages/nc-gui/components/cell/TimePicker.vue

@ -89,7 +89,7 @@ watch(
const placeholder = computed(() => {
if (isEditColumn.value && modelValue === null) {
return 'Select default time (Optional)'
return '(Optional)'
} else if (modelValue === null && showNull.value) {
return 'NULL'
} else if (isTimeInvalid.value) {

2
packages/nc-gui/components/cell/YearPicker.vue

@ -76,7 +76,7 @@ watch(
const placeholder = computed(() => {
if (isEditColumn.value && modelValue === null) {
return 'Select default year (Optional)'
return '(Optional)'
} else if (modelValue === null && showNull.value) {
return 'NULL'
} else if (isYearInvalid.value) {

Loading…
Cancel
Save