Merge pull request #4672 from ninjadq/fix_bug_search_member_by_username

Add query string when get members
This commit is contained in:
stone 2018-04-18 16:42:28 +08:00 committed by GitHub
commit 2f1989d211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ export class MemberService {
listMembers(projectId: number, username: string): Observable<Member[]> { listMembers(projectId: number, username: string): Observable<Member[]> {
return this.http return this.http
.get(`/api/projects/${projectId}/members`, HTTP_GET_OPTIONS) .get(`/api/projects/${projectId}/members?entityname=${username}`, HTTP_GET_OPTIONS)
.map(response => response.json() as Member[]) .map(response => response.json() as Member[])
.catch(error => Observable.throw(error)); .catch(error => Observable.throw(error));
} }