Skip to content
Snippets Groups Projects
Commit e2c151f7 authored by jojohoch's avatar jojohoch
Browse files

[player] Rename properties

parent 2875a4fe
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ export class FormService {
private _elementValueChanged = new Subject<ValueChangeElement>();
private _controlAdded = new Subject<FormControlElement>();
private _groupAdded = new Subject<FormGroupPage>();
private _validationsAdded = new Subject<FormControlValidators>();
private _validatorsAdded = new Subject<FormControlValidators>();
get elementValueChanged(): Observable<ValueChangeElement> {
return this._elementValueChanged.asObservable();
......@@ -25,8 +25,8 @@ export class FormService {
return this._groupAdded.asObservable();
}
get validationsAdded(): Observable<FormControlValidators> {
return this._validationsAdded.asObservable();
get validatorsAdded(): Observable<FormControlValidators> {
return this._validatorsAdded.asObservable();
}
changeElementValue(elementValues: ValueChangeElement): void {
......@@ -42,6 +42,6 @@ export class FormService {
}
setValidators(validations: FormControlValidators): void {
Promise.resolve().then(() => this._validationsAdded.next(validations));
Promise.resolve().then(() => this._validatorsAdded.next(validations));
}
}
......@@ -55,7 +55,7 @@ export class FormComponent implements OnDestroy {
this.formService.controlAdded.pipe(
takeUntil(this.ngUnsubscribe)
).subscribe((control: FormControlElement): void => this.addControl(control));
this.formService.validationsAdded.pipe(
this.formService.validatorsAdded.pipe(
takeUntil(this.ngUnsubscribe)
).subscribe((validations: FormControlValidators): void => this.setValidators(validations));
this.veronaSubscriptionService.vopNavigationDeniedNotification
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment