fix (clients): bugs in clients view page

- adds skipErrorHandler to avoid profile image error message on frontend
- defines breadcrumb text for each route in clients-routing.module.ts
- removes mat-elevation-z1 class of tables in client view page

fixes: #447
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent 504a14b968
commit 5125e8fe4c
7 changed files with 20 additions and 24 deletions
+1 -2
View File
@@ -22,7 +22,6 @@ export class ClientsService {
.set('limit', limit.toString())
.set('sortOrder', sortOrder)
.set('orderBy', orderBy);
return this.http.get('/clients', { params: httpParams });
}
@@ -62,7 +61,7 @@ export class ClientsService {
getClientProfileImage(clientId: string) {
const httpParams = new HttpParams().set('maxHeight', '150');
return this.http.get(`/clients/${clientId}/images`, { params: httpParams, responseType: 'text' });
return this.http.skipErrorHandler().get(`/clients/${clientId}/images`, { params: httpParams, responseType: 'text' });
}
getClientFamilyMembers(clientId: string) {