feat: family members list

- add family member tab component
- Change delete button color to warn in delete dialog box

fixes: #262 , #80
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent f5aac68888
commit 2a73f10597
14 changed files with 294 additions and 17 deletions
@@ -13,19 +13,18 @@ import { ClientsService } from '../clients.service';
export class ClientsViewComponent implements OnInit {
clientViewData: any;
clientImage: any;
clientTemplate: any;
constructor(private route: ActivatedRoute,
private clientsService: ClientsService,
private _sanitizer: DomSanitizer) {
this.route.data.subscribe((data: { clientViewData: any }) => {
this.clientViewData = data.clientViewData;
});
}
ngOnInit() {
this.clientsService.getClientProfileImage(this.clientViewData.id).subscribe(base64Image => {
this.clientsService.getClientProfileImage(this.clientViewData.id).subscribe((base64Image: any) => {
this.clientImage = this._sanitizer.bypassSecurityTrustResourceUrl(base64Image);
});
}
}