Browse Source

Fixes:

* Inline editing
* Styling for modal footers.
* Undefined fix in string properties
pull/489/head 4.1.1
Sebastian 6 years ago
parent
commit
105cf4f552
  1. 1
      backend/src/Squidex.Domain.Apps.Core.Model/Schemas/BooleanFieldProperties.cs
  2. 4
      frontend/app/features/content/shared/list/content-value-editor.component.html
  3. 2
      frontend/app/features/schemas/pages/schema/fields/types/string-validation.component.ts
  4. 2
      frontend/app/theme/_bootstrap.scss

1
backend/src/Squidex.Domain.Apps.Core.Model/Schemas/BooleanFieldProperties.cs

@ -7,6 +7,7 @@
namespace Squidex.Domain.Apps.Core.Schemas
{
[Equals(DoNotAddEqualityOperators = true)]
public sealed class BooleanFieldProperties : FieldProperties
{
public bool? DefaultValue { get; set; }

4
frontend/app/features/content/shared/list/content-value-editor.component.html

@ -38,9 +38,9 @@
<sqx-toggle [formControlName]="field.name" [threeStates]="!field.properties.isRequired"></sqx-toggle>
</ng-container>
<ng-container *ngSwitchCase="'Checkbox'">
<ng-container class="form-check form-check-inline">
<div class="form-check form-check-inline">
<input class="form-check-input" type="checkbox" [formControlName]="field.name" sqxIndeterminateValue />
</ng-container>
</div>
</ng-container>
</ng-container>
</ng-container>

2
frontend/app/features/schemas/pages/schema/fields/types/string-validation.component.ts

@ -111,7 +111,7 @@ export class StringValidationComponent extends ResourceOwner implements OnChange
}
private setPatternName() {
const value = this.editForm.controls['pattern'].value;
const value = this.editForm.controls['pattern']?.value;
if (!value) {
this.patternName = '';

2
frontend/app/theme/_bootstrap.scss

@ -708,6 +708,8 @@ $icon-size: 4.5rem;
}
&-footer {
padding: .75rem 1.25rem;
.clearfix {
width: 100%;
}

Loading…
Cancel
Save