SUPPORT-8999: credential edit
This commit is contained in:
parent
16b321a77f
commit
6eaccd17dc
7 changed files with 80 additions and 16 deletions
|
|
@ -32,13 +32,19 @@ export class UserManagementService extends Behavior {
|
|||
|
||||
switch (this.action) {
|
||||
case AccountAction.CREATE:
|
||||
this.doRequest("user/create", jsonObj);
|
||||
this.doRequest("user", jsonObj);
|
||||
break;
|
||||
case AccountAction.EDIT:
|
||||
this.doRequest("user/edit", jsonObj);
|
||||
case AccountAction.EDIT_PERSON:
|
||||
this.doRequest("user/person", jsonObj);
|
||||
break;
|
||||
case AccountAction.EDIT_ACCOUNT:
|
||||
this.doRequest("user/account", jsonObj);
|
||||
break;
|
||||
case AccountAction.EDIT_ROLES:
|
||||
this.doRequest("user/roles", jsonObj);
|
||||
break;
|
||||
case AccountAction.DEACTIVATE:
|
||||
this.doRequest("user/deactivate", jsonObj);
|
||||
this.doRequest("users/deactivation", jsonObj);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
export enum AccountAction {
|
||||
CREATE = "CREATE",
|
||||
EDIT = "EDIT",
|
||||
EDIT_PERSON = "EDIT_PERSON",
|
||||
EDIT_ACCOUNT = "EDIT_ACCOUNT",
|
||||
EDIT_ROLES = "EDIT_ROLES",
|
||||
DEACTIVATE = "DEACTIVATE"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue