feat: client notes page

- add notes-tab.component
- add edit-note-dialog.coponent

fixes: #111
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent d84dbf50ed
commit 0cd987cabf
14 changed files with 295 additions and 6 deletions
+16
View File
@@ -87,4 +87,20 @@ export class ClientsService {
uploadClientIdentifierDocument(identifierId: string, documentData: any) {
return this.http.post(`/client_identifiers/${identifierId}/documents`, documentData);
}
getClientNotes(clientId: string) {
return this.http.get(`/clients/${clientId}/notes`);
}
createClientNote(clientId: string, noteData: any) {
return this.http.post(`/clients/${clientId}/notes`, noteData);
}
editClientNote(clientId: string, noteId: string, noteData: any) {
return this.http.put(`/clients/${clientId}/notes/${noteId}`, noteData);
}
deleteClientNote(clientId: string, noteId: string) {
return this.http.delete(`/clients/${clientId}/notes/${noteId}`);
}
}