Affichage des DZs favorites +
tri des DZs en fonction de cela
This commit is contained in:
@@ -14,7 +14,7 @@ export class ServiceApiPut {
|
||||
constructor(private http: HttpClient, private dateService: DateService) { }
|
||||
|
||||
public SetFavoriteDropZone(selectedDz: DropZoneResp): boolean {
|
||||
selectedDz.isfavorite = true;
|
||||
selectedDz.isFavorite = true;
|
||||
this.http
|
||||
.put(`${environment.urlApi}/api/DropZone/${selectedDz.id}`, selectedDz, {
|
||||
headers: this.headers
|
||||
@@ -25,7 +25,7 @@ export class ServiceApiPut {
|
||||
}
|
||||
|
||||
public RemoveFavoriteDropZone(selectedDz: DropZoneResp): boolean {
|
||||
selectedDz.isfavorite = false;
|
||||
selectedDz.isFavorite = false;
|
||||
this.http
|
||||
.put(`${environment.urlApi}/api/DropZone/${selectedDz.id}`, selectedDz, {
|
||||
headers: this.headers
|
||||
|
||||
Reference in New Issue
Block a user