Commit 09f3dcbb authored by Hamza HRAMCHI's avatar Hamza HRAMCHI
Browse files

FIX #10110 TIME 0:33 add offset to pagination

parent ddc7b8f9
......@@ -509,7 +509,7 @@ export class CorrespondentListHttpDao {
getRepoIssues(sort: string, order: string, page: number, href: string, search: string, pageSize: number): Observable<CorrespondentList> {
const offset = page * 10;
const offset = page * pageSize;
const requestUrl = `${href}?limit=${pageSize}&offset=${offset}&order=${order}&orderBy=${sort}&search=${search}`;
return this.http.get<CorrespondentList>(requestUrl);
......
......@@ -390,7 +390,7 @@ export class ContactListHttpDao {
getRepoIssues(sort: string, order: string, page: number, href: string, search: string, pageSize: number): Observable<ContactList> {
const offset = page * 10;
const offset = page * pageSize;
const requestUrl = `${href}?limit=${pageSize}&offset=${offset}&order=${order}&orderBy=${sort}&search=${search}`;
return this.http.get<ContactList>(requestUrl);
}
......
......@@ -295,7 +295,7 @@ export class HistoryListHttpDao {
getRepoIssues(sort: string, order: string, page: number, href: string, search: string, directSearchValue: string, pageSize: number): Observable<HistoryList> {
const offset = page * 10;
const offset = page * pageSize;
const requestUrl = `${href}?limit=${pageSize}&offset=${offset}&order=${order}&orderBy=${sort}${search}${directSearchValue}`;
return this.http.get<HistoryList>(requestUrl);
......
......@@ -315,7 +315,7 @@ export class HistoryListHttpDao {
getRepoIssues(sort: string, order: string, page: number, href: string, search: string, extraParamUrl: string, directSearchValue: string, pageSize: number): Observable<HistoryList> {
const offset = page * 10;
const offset = page * pageSize;
const requestUrl = `${href}?limit=${pageSize}&offset=${offset}&order=${order}&orderBy=${sort}${search}${extraParamUrl}${directSearchValue}`;
return this.http.get<HistoryList>(requestUrl);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment