|
|
@ -170,6 +170,13 @@ namespace Squidex.Domain.Apps.Entities.Schemas.Guards |
|
|
nameof(properties.MinValue), |
|
|
nameof(properties.MinValue), |
|
|
nameof(properties.MaxValue)); |
|
|
nameof(properties.MaxValue)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (properties.InlineEditable && properties.Editor != NumberFieldEditor.Input && properties.Editor != NumberFieldEditor.Dropdown) |
|
|
|
|
|
{ |
|
|
|
|
|
yield return new ValidationError("Inline editing is only allowed for dropdowns and input fields.", |
|
|
|
|
|
nameof(properties.InlineEditable), |
|
|
|
|
|
nameof(properties.Editor)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public IEnumerable<ValidationError> Visit(ReferencesFieldProperties properties) |
|
|
public IEnumerable<ValidationError> Visit(ReferencesFieldProperties properties) |
|
|
@ -216,6 +223,13 @@ namespace Squidex.Domain.Apps.Entities.Schemas.Guards |
|
|
nameof(properties.MinLength), |
|
|
nameof(properties.MinLength), |
|
|
nameof(properties.MaxLength)); |
|
|
nameof(properties.MaxLength)); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (properties.InlineEditable && properties.Editor != StringFieldEditor.Input && properties.Editor != StringFieldEditor.Input && properties.Editor != StringFieldEditor.Slug) |
|
|
|
|
|
{ |
|
|
|
|
|
yield return new ValidationError("Inline editing is only allowed for dropdowns, slugs and input fields.", |
|
|
|
|
|
nameof(properties.InlineEditable), |
|
|
|
|
|
nameof(properties.Editor)); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public IEnumerable<ValidationError> Visit(TagsFieldProperties properties) |
|
|
public IEnumerable<ValidationError> Visit(TagsFieldProperties properties) |
|
|
|