mirror of
https://github.com/directus/directus.git
synced 2026-02-13 00:44:57 -05:00
* 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
43 lines
768 B
TypeScript
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',
|
|
},
|
|
},
|
|
],
|
|
});
|