Tri des DZs par "isFavorite" et affichage
de l'étoile
This commit is contained in:
@@ -95,6 +95,7 @@ export class NewJumpComponent implements OnInit {
|
||||
|
||||
private getListOfDropZones() {
|
||||
this.serviceApiGet.getListOfDropZones().subscribe(data => {
|
||||
data.sort((a, b) => (b.isFavorite ? 1 : 0) - (a.isFavorite ? 1 : 0));
|
||||
this.listOfDropZone = data;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user