Removed useless comments and console logs

This commit is contained in:
Giuseppe Digilio
2018-12-20 11:21:39 +01:00
parent 1935b61c7e
commit 6dc7dab25d
4 changed files with 1 additions and 25 deletions

View File

@@ -94,7 +94,6 @@ export abstract class ConfigService {
}
public getConfigBySearch(options: FindAllOptions = {}): Observable<ConfigData> {
console.log(this.halService.getEndpoint(this.linkPath));
return this.halService.getEndpoint(this.linkPath).pipe(
map((endpoint: string) => this.getConfigSearchHref(endpoint, options)),
filter((href: string) => isNotEmpty(href)),

View File

@@ -32,7 +32,6 @@
(change)="onChangeLanguage($event)"
[ngModelOptions]="{standalone: true}"
required>
<!--<option [value]="null" disabled>Language</option>-->
<option *ngFor="let lang of model.languageCodes" [value]="lang.code">{{lang.display}}</option>
</select>
</div>

View File

@@ -12,8 +12,7 @@ import {
SimpleChanges,
Type,
ViewChild,
ViewContainerRef,
ViewEncapsulation
ViewContainerRef
} from '@angular/core';
import { FormGroup } from '@angular/forms';

View File

@@ -37,25 +37,4 @@ export class DsDynamicFormGroupComponent extends DynamicFormControlComponent {
super(layoutService, validationService);
}
/* ngAfterViewInit() {
if (this.control) {
this.control.statusChanges.pipe(
tap((state) => console.log(this.model.id, state)),
filter((state) => state === 'INVALID'),
// filter(() => this.control.touched),
)
.subscribe((state) => {
// const instance: DynamicFormControlComponent = this.componentRef.instance as any;
console.log('group', this.model.id, state);
// console.log(this.model.hasErrorMessages, this.control.touched, this.hasFocus, this.isInvalid);
// instance.control.markAsTouched();
console.log('showErrorMessages ', this.showErrorMessages);
console.log('hasErrorMessages ', this.model.hasErrorMessages);
console.log('touched ', this.control.touched);
console.log('hasFocus ', this.hasFocus);
console.log('isInvalid ', this.isInvalid);
});
}
}*/
}