SUPPORT-8957: change to string param
This commit is contained in:
parent
3e7764fcfe
commit
7d306cdafe
1 changed files with 12 additions and 4 deletions
|
|
@ -1,8 +1,11 @@
|
|||
import {
|
||||
AnalyticalScope,
|
||||
Behavior,
|
||||
NotNull, ObjectRef,
|
||||
SaveButton, TextField, Visible
|
||||
NotNull,
|
||||
ObjectRef,
|
||||
SaveButton,
|
||||
TextField,
|
||||
Visible
|
||||
} from "@webbpm/base-package";
|
||||
import {HttpClient} from "@angular/common/http";
|
||||
import {FormField} from "../field/FormField";
|
||||
|
|
@ -65,8 +68,13 @@ export class UserManagementService extends Behavior {
|
|||
}
|
||||
|
||||
@Visible()
|
||||
public setAccountAction(action: AccountAction): void {
|
||||
this.action = action;
|
||||
public setAccountAction(actionName: string): void {
|
||||
try {
|
||||
this.action = AccountAction[actionName];
|
||||
}
|
||||
catch (error) {
|
||||
console.error(`Unsupported action name ${actionName}`, error);
|
||||
}
|
||||
}
|
||||
|
||||
private collectData(): any {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue