mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-04 23:21:48 -05:00
158 paginated data list (#180)
* working: rename OrganizationTeamsList to PaginatedDataList * convert org notifications list fully to PaginatedDataList * update NotificationList tests * refactor org access to use PaginatedDataList * update tests for org access refactor; fix pagination & sorting * restore Add Role functionality to Org roles * fix displayed text when list of items is empty * preserve query params when navigating through pagination * fix bugs after RBAC rebase * fix lint errors, fix add org access button
This commit is contained in:
10
src/api.js
10
src/api.js
@@ -148,6 +148,16 @@ class APIClient {
|
||||
return this.http.post(url, { id });
|
||||
}
|
||||
|
||||
disassociateTeamRole (teamId, roleId) {
|
||||
const url = `/api/v2/teams/${teamId}/roles/`;
|
||||
return this.disassociate(url, roleId);
|
||||
}
|
||||
|
||||
disassociateUserRole (accessRecordId, roleId) {
|
||||
const url = `/api/v2/users/${accessRecordId}/roles/`;
|
||||
return this.disassociate(url, roleId);
|
||||
}
|
||||
|
||||
disassociate (url, id) {
|
||||
return this.http.post(url, { id, disassociate: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user