mirror of
https://github.com/directus/directus.git
synced 2026-01-25 04:57:56 -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;
|
||||
|
||||
Reference in New Issue
Block a user