mirror of
https://github.com/directus/directus.git
synced 2026-01-23 08:38:06 -05:00
Merge pull request #758 from nickrum/status-required-improvement
Remove outdated required field property
This commit is contained in:
@@ -135,15 +135,18 @@ fields:
|
||||
- field: key
|
||||
name: Key
|
||||
type: string
|
||||
schema:
|
||||
is_nullable: false
|
||||
meta:
|
||||
interface: slug
|
||||
options:
|
||||
onlyOnCreate: false
|
||||
required: true
|
||||
width: half
|
||||
- field: fit
|
||||
name: Fit
|
||||
type: string
|
||||
schema:
|
||||
is_nullable: false
|
||||
meta:
|
||||
interface: dropdown
|
||||
options:
|
||||
@@ -152,34 +155,35 @@ fields:
|
||||
text: Contain (preserve aspect ratio)
|
||||
- value: cover
|
||||
text: Cover (forces exact size)
|
||||
required: true
|
||||
width: half
|
||||
- field: width
|
||||
name: Width
|
||||
type: integer
|
||||
schema:
|
||||
is_nullable: false
|
||||
meta:
|
||||
interface: numeric
|
||||
required: true
|
||||
width: half
|
||||
- field: height
|
||||
name: Height
|
||||
type: integer
|
||||
schema:
|
||||
is_nullable: false
|
||||
meta:
|
||||
interface: numeric
|
||||
required: true
|
||||
width: half
|
||||
- field: quality
|
||||
type: integer
|
||||
name: Quality
|
||||
schema:
|
||||
default_value: 80
|
||||
is_nullable: false
|
||||
meta:
|
||||
interface: slider
|
||||
options:
|
||||
max: 100
|
||||
min: 0
|
||||
step: 1
|
||||
required: true
|
||||
width: full
|
||||
template: '{{key}}'
|
||||
special: json
|
||||
|
||||
@@ -26,7 +26,6 @@ export type FieldMeta = {
|
||||
interface: string | null;
|
||||
options: Record<string, any> | null;
|
||||
locked: boolean;
|
||||
required: boolean;
|
||||
readonly: boolean;
|
||||
hidden: boolean;
|
||||
sort: number | null;
|
||||
|
||||
@@ -304,7 +304,6 @@ export default defineComponent({
|
||||
type: 'string',
|
||||
meta: {
|
||||
width: 'full',
|
||||
required: true,
|
||||
options: {
|
||||
choices: [
|
||||
{
|
||||
@@ -342,6 +341,7 @@ export default defineComponent({
|
||||
},
|
||||
schema: {
|
||||
default_value: 'draft',
|
||||
is_nullable: false,
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
@@ -27,7 +27,6 @@ const fakeFilesField: Field = {
|
||||
display_options: null,
|
||||
hidden: false,
|
||||
locked: true,
|
||||
required: false,
|
||||
translations: null,
|
||||
readonly: true,
|
||||
width: 'full',
|
||||
|
||||
@@ -60,7 +60,6 @@ export type FieldMeta = {
|
||||
options: null | Record<string, any>;
|
||||
display_options: null | Record<string, any>;
|
||||
readonly: boolean;
|
||||
required: boolean;
|
||||
sort: number | null;
|
||||
special: string[] | null;
|
||||
translations: null | Translations[];
|
||||
|
||||
Reference in New Issue
Block a user