refactor(clients): clients list page
- use statuslookup.pipe to set styles to represent status of the client - add button to import client and create client - add server side pagination - toggle show closed clients in table
This commit is contained in:
committed by
Abhay Chawla
parent
6c7e8ad7ba
commit
504a14b968
@@ -16,8 +16,13 @@ export class ClientsService {
|
||||
*/
|
||||
constructor(private http: HttpClient) { }
|
||||
|
||||
getClients(): Observable<any> {
|
||||
const httpParams = new HttpParams().set('orderBy', 'id');
|
||||
getClients(orderBy: string, sortOrder: string, offset: number, limit: number): Observable<any> {
|
||||
const httpParams = new HttpParams()
|
||||
.set('offset', offset.toString())
|
||||
.set('limit', limit.toString())
|
||||
.set('sortOrder', sortOrder)
|
||||
.set('orderBy', orderBy);
|
||||
|
||||
return this.http.get('/clients', { params: httpParams });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user