Use list user groups API to search groups (#16610)

Signed-off-by: AllForNothing <sshijun@vmware.com>
This commit is contained in:
Shijun Sun 2022-03-30 19:46:29 +08:00 committed by GitHub
parent 8333b19ff2
commit a5b5e21ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,8 +81,8 @@ export class GroupComponent implements OnInit, OnDestroy {
this.currentPage = 1;
this.selectedGroups = [];
this.loading = true;
return this.groupService.searchUserGroupsResponse({
groupname: groupName,
return this.groupService.listUserGroupsResponse({
groupName: groupName,
pageSize: this.pageSize,
page: this.currentPage
})