Browse Source

fix: i18n for Lookup

pull/6519/head
Muhammed Mustafa 1 year ago
parent
commit
463aeaefbc
  1. 6
      packages/nc-gui/components/smartsheet/column/LookupOptions.vue

6
packages/nc-gui/components/smartsheet/column/LookupOptions.vue

@ -14,6 +14,8 @@ const vModel = useVModel(props, 'value', emit)
const meta = inject(MetaInj, ref()) const meta = inject(MetaInj, ref())
const { t } = useI18n()
const { setAdditionalValidations, validateInfos, onDataTypeChange, isEdit } = useColumnCreateStoreOrThrow() const { setAdditionalValidations, validateInfos, onDataTypeChange, isEdit } = useColumnCreateStoreOrThrow()
const projectStore = useProject() const projectStore = useProject()
@ -22,8 +24,8 @@ const { tables } = storeToRefs(projectStore)
const { metas } = useMetas() const { metas } = useMetas()
setAdditionalValidations({ setAdditionalValidations({
fk_relation_column_id: [{ required: true, message: 'Required' }], fk_relation_column_id: [{ required: true, message: t('general.required') }],
fk_lookup_column_id: [{ required: true, message: 'Required' }], fk_lookup_column_id: [{ required: true, message: t('general.required') }],
}) })
if (!vModel.value.fk_relation_column_id) vModel.value.fk_relation_column_id = null if (!vModel.value.fk_relation_column_id) vModel.value.fk_relation_column_id = null

Loading…
Cancel
Save