mirror of
https://github.com/directus/directus.git
synced 2026-02-14 17:25:28 -05:00
Exclude relationship fields on field validation (#14818)
* Exclude relationship fields on field validation * Refactor to includeRelations. Also add to conditions
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
:collection="collection"
|
||||
:field="field"
|
||||
include-functions
|
||||
:include-relations="includeRelations"
|
||||
@select-field="updateField(index, $event)"
|
||||
/>
|
||||
</v-menu>
|
||||
@@ -139,6 +140,7 @@ interface Props {
|
||||
depth?: number;
|
||||
inline?: boolean;
|
||||
includeValidation?: boolean;
|
||||
includeRelations?: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
@@ -146,6 +148,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
depth: 1,
|
||||
inline: false,
|
||||
includeValidation: false,
|
||||
includeRelations: true,
|
||||
});
|
||||
|
||||
const emit = defineEmits(['remove-node', 'update:filter', 'change']);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
:field="fieldName"
|
||||
:depth="1"
|
||||
:include-validation="includeValidation"
|
||||
:include-relations="includeRelations"
|
||||
@remove-node="removeNode($event)"
|
||||
@change="emitValue"
|
||||
/>
|
||||
@@ -42,6 +43,7 @@
|
||||
v-if="collectionRequired"
|
||||
:collection="collection"
|
||||
include-functions
|
||||
:include-relations="includeRelations"
|
||||
@select-field="addNode($event)"
|
||||
>
|
||||
<template #prepend>
|
||||
@@ -96,6 +98,7 @@ interface Props {
|
||||
fieldName?: string;
|
||||
inline?: boolean;
|
||||
includeValidation?: boolean;
|
||||
includeRelations?: boolean;
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
@@ -107,6 +110,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
fieldName: undefined,
|
||||
inline: false,
|
||||
includeValidation: false,
|
||||
includeRelations: true,
|
||||
});
|
||||
|
||||
const emit = defineEmits(['input']);
|
||||
|
||||
Reference in New Issue
Block a user