diff --git a/app/src/components/v-field-select/v-field-select.vue b/app/src/components/v-field-select/v-field-select.vue index 3135187a4a..67b7240799 100644 --- a/app/src/components/v-field-select/v-field-select.vue +++ b/app/src/components/v-field-select/v-field-select.vue @@ -1,31 +1,25 @@ - - - - - {{ field.name }} - - - - + + + {{ field.name }} + + - + - Add field - + - + diff --git a/app/src/interfaces/one-to-many/index.ts b/app/src/interfaces/one-to-many/index.ts index 531321ff8a..9bb215b1e9 100644 --- a/app/src/interfaces/one-to-many/index.ts +++ b/app/src/interfaces/one-to-many/index.ts @@ -1,5 +1,6 @@ import { defineInterface } from '../define'; import InterfaceOneToMany from './one-to-many.vue'; +import Options from './options.vue'; export default defineInterface(({ i18n }) => ({ id: 'one-to-many', @@ -9,19 +10,6 @@ export default defineInterface(({ i18n }) => ({ component: InterfaceOneToMany, types: ['alias'], relationship: 'o2m', - options: [ - { - field: 'fields', - type: 'json', - name: i18n.tc('field', 0), - meta: { - interface: 'tags', - width: 'full', - options: { - placeholder: i18n.t('interfaces.one-to-many.readable_fields_copy'), - }, - }, - }, - ], + options: Options, recommendedDisplays: ['related-values'], })); diff --git a/app/src/interfaces/one-to-many/options.vue b/app/src/interfaces/one-to-many/options.vue new file mode 100644 index 0000000000..54221e6b0e --- /dev/null +++ b/app/src/interfaces/one-to-many/options.vue @@ -0,0 +1,47 @@ + + + {{ $t('interfaces.one-to-many.no_collection') }} + + + {{ $t('select_fields') }} + + + + + + + diff --git a/app/src/layouts/tabular/tabular.vue b/app/src/layouts/tabular/tabular.vue index c7883a33c5..939b05d6ae 100644 --- a/app/src/layouts/tabular/tabular.vue +++ b/app/src/layouts/tabular/tabular.vue @@ -1,11 +1,6 @@ - - Test - - - {{ $t('layouts.tabular.spacing') }} (null); const mainElement = inject('main-element', ref(null)); @@ -296,7 +290,6 @@ export default defineComponent({ activeFilterCount, refresh, resetPresetAndRefresh, - selectedFields, }; async function resetPresetAndRefresh() {
{{ $t('select_fields') }}