Skip to content
Snippets Groups Projects
Commit 01397d6e authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #12635 TIME 0:20 add filling rate in contact list

parent 2a6252d7
No related branches found
No related tags found
No related merge requests found
...@@ -57,6 +57,13 @@ ...@@ -57,6 +57,13 @@
<div style="height:90%;overflow:auto;position:absolute;width:100%;"> <div style="height:90%;overflow:auto;position:absolute;width:100%;">
<mat-table id="contact-list" #tableContactListSort="matSort" [dataSource]="data" matSort <mat-table id="contact-list" #tableContactListSort="matSort" [dataSource]="data" matSort
matSortActive="lastname" matSortDirection="asc" style="width:100%;"> matSortActive="lastname" matSortDirection="asc" style="width:100%;">
<ng-container matColumnDef="filling">
<mat-header-cell *matHeaderCellDef style="flex: initial;width: 50px;" mat-sort-header
[class.hide-for-mobile]="appService.getViewMode()"></mat-header-cell>
<mat-cell mat-cell *matCellDef="let element" style="flex: initial;width: 50px;" [class.hide-for-mobile]="appService.getViewMode()">
<i class="fas fa-circle" [title]="lang.contactFilledTo + ' ' + element.filling.rate + '%'" [style.color]="element.filling.color"></i>
</mat-cell>
</ng-container>
<ng-container matColumnDef="firstname"> <ng-container matColumnDef="firstname">
<mat-header-cell *matHeaderCellDef mat-sort-header <mat-header-cell *matHeaderCellDef mat-sort-header
[class.hide-for-mobile]="appService.getViewMode()">{{lang.firstname}}</mat-header-cell> [class.hide-for-mobile]="appService.getViewMode()">{{lang.firstname}}</mat-header-cell>
......
...@@ -29,7 +29,7 @@ export class ContactsListAdministrationComponent implements OnInit { ...@@ -29,7 +29,7 @@ export class ContactsListAdministrationComponent implements OnInit {
data: any; data: any;
displayedColumnsContact: string[] = ['firstname', 'lastname', 'company', 'formatedAddress', 'actions']; displayedColumnsContact: string[] = ['filling', 'firstname', 'lastname', 'company', 'formatedAddress', 'actions'];
isLoadingResults = true; isLoadingResults = true;
routeUrl: string = '../../rest/contacts'; routeUrl: string = '../../rest/contacts';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment