Files
directus/app/src/interfaces/list-m2a/index.ts
Rijk van Zanten 92e1ee77bd Add support for Conditional Fields (#6864)
* Add conditions field to directus_fields

* Add conditions configuration

* Apply conditional overrides

* Handle conditions in nested groups

* Fix reverse mutating conditions

* Start on filter setup interface

* Move field types/constants to shared

* [WIP] Updated client side filter validation

* Support logical operators in client validation step

* Use new validation util in conditions check

* Add nesting in filter seutp

* Add filter rule setup configurator

* Fixes that should've been done in the merge

* Strip out filter-settings interface

TBD in a new PR

* Move browser to index
2021-07-26 18:02:24 -04:00

43 lines
768 B
TypeScript

import { defineInterface } from '@directus/shared/utils';
import InterfaceListM2A from './list-m2a.vue';
export default defineInterface({
id: 'list-m2a',
name: '$t:list-m2a',
icon: 'note_add',
component: InterfaceListM2A,
relational: true,
types: ['alias'],
groups: ['m2a'],
options: [
{
field: 'enableSelect',
name: '$t:selecting_items',
schema: {
default_value: true,
},
meta: {
interface: 'boolean',
options: {
label: '$t:enable_select_button',
},
width: 'half',
},
},
{
field: 'enableCreate',
name: '$t:creating_items',
schema: {
default_value: true,
},
meta: {
interface: 'boolean',
options: {
label: '$t:enable_create_button',
},
width: 'half',
},
},
],
});