mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
Removed useless comments and console logs
This commit is contained in:
@@ -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)),
|
||||
|
@@ -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>
|
||||
|
@@ -12,8 +12,7 @@ import {
|
||||
SimpleChanges,
|
||||
Type,
|
||||
ViewChild,
|
||||
ViewContainerRef,
|
||||
ViewEncapsulation
|
||||
ViewContainerRef
|
||||
} from '@angular/core';
|
||||
import { FormGroup } from '@angular/forms';
|
||||
|
||||
|
@@ -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);
|
||||
});
|
||||
}
|
||||
}*/
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user