Browse Source

Client and server side Field Hint length validation now in sync (#866)

pull/867/head
Paul Astbury-Thomas 4 years ago
committed by GitHub
parent
commit
bc3fd69946
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs
  2. 2
      frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-common.component.html

2
backend/src/Squidex/Areas/Api/Controllers/Schemas/Models/FieldPropertiesDto.cs

@ -25,7 +25,7 @@ namespace Squidex.Areas.Api.Controllers.Schemas.Models
public string? Label { get; set; } public string? Label { get; set; }
/// <summary> /// <summary>
/// Hints to describe the schema. /// Hints to describe the field.
/// </summary> /// </summary>
[LocalizedStringLength(1000)] [LocalizedStringLength(1000)]
public string? Hints { get; set; } public string? Hints { get; set; }

2
frontend/src/app/features/schemas/pages/schema/fields/forms/field-form-common.component.html

@ -31,7 +31,7 @@
<div class="col-9"> <div class="col-9">
<sqx-control-errors for="hints"></sqx-control-errors> <sqx-control-errors for="hints"></sqx-control-errors>
<input type="text" class="form-control" id="{{field.fieldId}}_fieldHints" maxlength="100" formControlName="hints"> <input type="text" class="form-control" id="{{field.fieldId}}_fieldHints" maxlength="1000" formControlName="hints">
<sqx-form-hint> <sqx-form-hint>
{{ 'schemas.field.hintsHint' | sqxTranslate }} {{ 'schemas.field.hintsHint' | sqxTranslate }}

Loading…
Cancel
Save