Merge pull request #758 from nickrum/status-required-improvement

Remove outdated required field property
This commit is contained in:
Rijk van Zanten
2020-10-22 19:56:02 +02:00
committed by GitHub
5 changed files with 10 additions and 9 deletions

View File

@@ -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

View File

@@ -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;

View File

@@ -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,
},
});

View File

@@ -27,7 +27,6 @@ const fakeFilesField: Field = {
display_options: null,
hidden: false,
locked: true,
required: false,
translations: null,
readonly: true,
width: 'full',

View File

@@ -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[];