mirror of
https://github.com/directus/directus.git
synced 2026-02-13 02:05:33 -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
27 lines
692 B
TypeScript
27 lines
692 B
TypeScript
import { defineInterface } from '@directus/shared/utils';
|
|
import InterfaceSystemDisplayTemplate from './system-display-template.vue';
|
|
|
|
export default defineInterface({
|
|
id: 'system-display-template',
|
|
name: '$t:interfaces.system-display-template.display-template',
|
|
description: '$t:interfaces.system-display-template.description',
|
|
icon: 'arrow_drop_down_circle',
|
|
component: InterfaceSystemDisplayTemplate,
|
|
types: ['string'],
|
|
system: true,
|
|
options: [
|
|
{
|
|
field: 'collectionField',
|
|
name: '$t:interfaces.system-display-template.collection_field',
|
|
type: 'string',
|
|
meta: {
|
|
width: 'full',
|
|
interface: 'input',
|
|
},
|
|
schema: {
|
|
default_value: null,
|
|
},
|
|
},
|
|
],
|
|
});
|