feat(clients): add/edit/delete data in single row datatables
- add checkbox-base.ts - update clients.service.ts file - add delete feature in multi-row and single datatables fixes: #460
This commit is contained in:
committed by
Abhay Chawla
parent
b6110a9c8a
commit
5436c10a90
@@ -48,6 +48,16 @@ export class ClientsService {
|
||||
return this.http.post(`/datatables/${datatableName}/${clientId}`, data, { params: httpParams });
|
||||
}
|
||||
|
||||
editClientDatatableEntry(clientId: string, datatableName: string, data: any) {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.put(`/datatables/${datatableName}/${clientId}`, data, { params: httpParams });
|
||||
}
|
||||
|
||||
deleteDatatableContent(clientId: string, datatableName: string) {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.delete(`/datatables/${datatableName}/${clientId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
getClientAccountData(clientId: string) {
|
||||
return this.http.get(`/clients/${clientId}/accounts`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user