Affichage des DZs favorites +
tri des DZs en fonction de cela
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<ng-container matColumnDef="isfavorite">
|
||||
<th mat-header-cell *matHeaderCellDef></th>
|
||||
<td mat-cell *matCellDef="let element" style="text-align: center;">
|
||||
<img src="../../assets/img/favorite.png" alt="favorite DZ" *ngIf="element.isfavorite"
|
||||
<img src="../../assets/img/favorite.png" alt="favorite DZ" *ngIf="element.isFavorite === true"
|
||||
(click)="removeToFavorite(element)">
|
||||
<img src="../../assets/img/not-favorite.png" alt="favorite DZ" *ngIf="!element.isfavorite"
|
||||
<img src="../../assets/img/not-favorite.png" alt="favorite DZ" *ngIf="element.isFavorite === false"
|
||||
(click)="setToFavorite(element)">
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user