mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +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> {
|
public getConfigBySearch(options: FindAllOptions = {}): Observable<ConfigData> {
|
||||||
console.log(this.halService.getEndpoint(this.linkPath));
|
|
||||||
return this.halService.getEndpoint(this.linkPath).pipe(
|
return this.halService.getEndpoint(this.linkPath).pipe(
|
||||||
map((endpoint: string) => this.getConfigSearchHref(endpoint, options)),
|
map((endpoint: string) => this.getConfigSearchHref(endpoint, options)),
|
||||||
filter((href: string) => isNotEmpty(href)),
|
filter((href: string) => isNotEmpty(href)),
|
||||||
|
@@ -32,7 +32,6 @@
|
|||||||
(change)="onChangeLanguage($event)"
|
(change)="onChangeLanguage($event)"
|
||||||
[ngModelOptions]="{standalone: true}"
|
[ngModelOptions]="{standalone: true}"
|
||||||
required>
|
required>
|
||||||
<!--<option [value]="null" disabled>Language</option>-->
|
|
||||||
<option *ngFor="let lang of model.languageCodes" [value]="lang.code">{{lang.display}}</option>
|
<option *ngFor="let lang of model.languageCodes" [value]="lang.code">{{lang.display}}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -12,8 +12,7 @@ import {
|
|||||||
SimpleChanges,
|
SimpleChanges,
|
||||||
Type,
|
Type,
|
||||||
ViewChild,
|
ViewChild,
|
||||||
ViewContainerRef,
|
ViewContainerRef
|
||||||
ViewEncapsulation
|
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { FormGroup } from '@angular/forms';
|
import { FormGroup } from '@angular/forms';
|
||||||
|
|
||||||
|
@@ -37,25 +37,4 @@ export class DsDynamicFormGroupComponent extends DynamicFormControlComponent {
|
|||||||
super(layoutService, validationService);
|
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