Parcourir la source

Deleting console logging

Richard Knight il y a 4 ans
Parent
commit
ae908806b4

+ 2 - 2
src/app/dynaform/components/clarity/text/clr-text.component.html

@@ -1,5 +1,5 @@
 <clr-input-container *ngIf="!link; else fieldWithLink">
-	<label *ngIf="label" [ngClass]="{ 'label-error': control.touched && control.invalid }">{{ label }}</label>
+	<label [ngClass]="{ 'label-error': control.touched && control.invalid }">{{ label }}</label>
 	<input clrInput type="text"
 		[formControl]="control"
 		[placeholder]="placeholder"
@@ -12,7 +12,7 @@
 
 <ng-template #fieldWithLink>
 	<clr-input-container>
-		<label *ngIf="label" [ngClass]="{ 'label-error': control.touched && control.invalid }">{{ label }}</label>
+		<label [ngClass]="{ 'label-error': control.touched && control.invalid }">{{ label }}</label>
 		<input clrInput type="text"
 			#field
 			[formControl]="control"

+ 0 - 3
src/app/dynaform/services/_formdata-utils.ts

@@ -26,7 +26,6 @@
 import { FormBuilder, FormGroup, FormArray, FormControl, AbstractControl, AbstractControlOptions } from '@angular/forms';
 import { cloneDeep, omit, reduce } from 'lodash/fp';
 import * as fmdModels from '../models/field.model';
-import { meta } from '@mock/testfields.v15';
 
 
 // ---------------------------------------------------------------------------------------------------------------------
@@ -427,9 +426,7 @@ const buildFormGroupFunctionFactory = (fb: FormBuilder): (meta) => FormGroup =>
 		if (!metaFoG || !(metaFoG.validators || metaFoG.asyncValidators)) {
 			return undefined;
 		}
-		console.log(metaFoG);
 		const res = buildValidators(metaFoG);
-		console.log(res);
 		return res;
 	}