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

Loading…
Cancel
Save