Browse Source

fix indention

pull/357/head
Alexander Winnen 7 years ago
committed by GitHub
parent
commit
2ffa2df03c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      src/Squidex/app/framework/angular/forms/control-errors.component.ts

14
src/Squidex/app/framework/angular/forms/control-errors.component.ts

@ -60,7 +60,7 @@ export class ControlErrorsComponent extends StatefulComponent<State> implements
public ngOnDestroy() {
super.ngOnDestroy();
this.restoreOriginalMarkAsTouchedFunction();
this.restoreOriginalMarkAsTouchedFunction();
}
public ngOnChanges() {
@ -84,7 +84,7 @@ export class ControlErrorsComponent extends StatefulComponent<State> implements
if (this.control !== control) {
this.unsubscribeAll();
this.restoreOriginalMarkAsTouchedFunction();
this.restoreOriginalMarkAsTouchedFunction();
this.control = control;
@ -110,11 +110,11 @@ export class ControlErrorsComponent extends StatefulComponent<State> implements
this.createMessages();
}
private restoreOriginalMarkAsTouchedFunction() {
if (this.control && this.originalMarkAsTouched) {
this.control['markAsTouched'] = this.originalMarkAsTouched;
}
private restoreOriginalMarkAsTouchedFunction() {
if (this.control && this.originalMarkAsTouched) {
this.control['markAsTouched'] = this.originalMarkAsTouched;
}
}
private createMessages() {
const errors: string[] = [];
@ -135,4 +135,4 @@ export class ControlErrorsComponent extends StatefulComponent<State> implements
this.next(s => ({ ...s, errorMessages: errors }));
}
}
}
}

Loading…
Cancel
Save