SUPPORT-8956: fixPages

This commit is contained in:
adel.ka 2025-03-06 10:40:44 +03:00
parent c69b5d4c33
commit e5c7e003a0
6 changed files with 61 additions and 77 deletions

View file

@ -2,7 +2,7 @@ import {AnalyticalScope, Behavior, TextField} from "@webbpm/base-package";
import {AuthorizationService} from "../../modules/app/service/authorization.service";
@AnalyticalScope("TextField")
export class SetCurrentRecruitmentIdAsDefValue extends Behavior {
export class SetCurrentUserIdAsDefValue extends Behavior {
private textField: TextField;
private authService: AuthorizationService;
@ -14,10 +14,9 @@ export class SetCurrentRecruitmentIdAsDefValue extends Behavior {
start(): void {
super.start();
if (this.textField && this.textField.isPristine() && this.authService &&
this.authService.getCurrentSession()) {
this.textField.setValue(this.authService.getDomainId());
this.textField.setValue(this.authService.getUserId());
this.getContext().getChangeDetector().detectChanges();
}
}