Skip to content

Commit

Permalink
feat: code refactoring following api change #444
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Sep 15, 2022
1 parent 78d353e commit b733d6d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin-ui/plugins/admin/redux/api/MappingApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class MappingApi {
}
getMappings = () => {
return new Promise((resolve, reject) => {
this.api.getAdminuiRolePermissions((error, data) => {
this.api.getAllAdminuiRolePermissions((error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down
4 changes: 2 additions & 2 deletions admin-ui/plugins/admin/redux/api/PermissionApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class PermissionApi {
}
getPermissions = () => {
return new Promise((resolve, reject) => {
this.api.getAdminuiPermissions((error, data) => {
this.api.getAllAdminuiPermissions((error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down Expand Up @@ -34,7 +34,7 @@ export default class PermissionApi {

deletePermission = async (data) => {
return new Promise((resolve, reject) => {
this.api.deleteAdminuiPermission(data.permission, (error, data) => {
this.api.deleteAdminuiPermission(encodeURIComponent(data.permission), (error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down
2 changes: 1 addition & 1 deletion admin-ui/plugins/admin/redux/api/RoleApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default class RoleApi {
}
getRoles = () => {
return new Promise((resolve, reject) => {
this.api.getAdminuiRoles((error, data) => {
this.api.getAllAdminuiRoles((error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down

0 comments on commit b733d6d

Please sign in to comment.