Skip to content

Commit 1ad701b

Browse files
committed
fix(admin-ui): code with put request
1 parent 6bb1d59 commit 1ad701b

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

admin-ui/plugins/user-management/components/UserManagement/UserClaimEntry.js

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ function UserClaimEntry({ data, type, entry, formik, handler }) {
77
const doHandle = () => {
88
handler(data.name)
99
}
10-
console.log(data.name, formik.values[data.name])
1110
return (
1211
<div key={entry}>
1312
{data.oxMultiValuedAttribute && (

admin-ui/plugins/user-management/redux/api/UserApi.js

+12-9
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,23 @@ export default class UserApi {
2323
updateUsers = (data) => {
2424
// customUser
2525

26-
// const options = {}
27-
// options['customUser'] = data
28-
// return new Promise((resolve, reject) => {
29-
// this.api.putUser(data.inum, options, (error, data) => {
30-
// this.handleResponse(error, reject, resolve, data)
31-
// })
32-
// })
26+
//CODE WITH PUT
3327
const options = {}
34-
options['userPatchRequest'] = data
28+
options['customUser'] = data
3529
return new Promise((resolve, reject) => {
36-
this.api.patchUserByInum(data.inum, options, (error, data) => {
30+
this.api.putUser(data.inum, options, (error, data) => {
3731
this.handleResponse(error, reject, resolve, data)
3832
})
3933
})
34+
35+
//Code with PATCH
36+
// const options = {}
37+
// options['userPatchRequest'] = data
38+
// return new Promise((resolve, reject) => {
39+
// this.api.patchUserByInum(data.inum, options, (error, data) => {
40+
// this.handleResponse(error, reject, resolve, data)
41+
// })
42+
// })
4043
}
4144
deleteUser = (inum) => {
4245
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)