SUPPORT-8956: fixPages
This commit is contained in:
parent
c69b5d4c33
commit
e5c7e003a0
6 changed files with 61 additions and 77 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue