merge resolution
This commit is contained in:
commit
a7a53659f2
|
@ -13,6 +13,7 @@
|
|||
<div class="navbar-nav ">
|
||||
<a routerLink="home" routerLinkActive="active-custom" class="nav-link p-4 pe-5 " style="font-size: 21px;">Accueil</a>
|
||||
<a routerLink="categories" routerLinkActive="active-custom" class="nav-link p-4 pe-5" style="font-size: 21px;">Categories</a>
|
||||
<a routerLink="restaurants" routerLinkActive="active-custom" class="nav-link p-4 pe-5" style="font-size: 21px;">Restaurants</a>
|
||||
<a routerLink="filtres" routerLinkActive="active-custom" class="nav-link p-4 pe-5" style="font-size: 21px;">Filtres</a>
|
||||
<a routerLink="favoris" routerLinkActive="active-custom" class="nav-link p-4 pe-5" style="font-size: 21px;">Mes favoris</a>
|
||||
<a routerLink="deconnexion" routerLinkActive="active-custom" (click) = "onCloseSession()" class="nav-link p-4 pe-5" style="font-size: 21px;">Deconnexion</a>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<app-template-page [title]="'Résultats :'">
|
||||
<app-template-page [title]="'Restaurants :'">
|
||||
<div *ngFor="let restaurantData of listRestaurants">
|
||||
<app-card-resto [restaurant]= "restaurantData" (clickLike)="onEventLike()"></app-card-resto>
|
||||
</div>
|
||||
|
|
|
@ -35,14 +35,12 @@ export class ApiBackService {
|
|||
}
|
||||
|
||||
setListRestau(listRestau: any[], routeParam?: string): void {
|
||||
|
||||
this.restoFilter = listRestau;
|
||||
this.routeParam = routeParam;
|
||||
|
||||
}
|
||||
|
||||
setDistance(lat1: number, lon1: number, lat2: number, lon2: number) {
|
||||
|
||||
let R = 6371; // Radius of the earth in km
|
||||
let dLat = this.deg2rad(lat2 - lat1); // deg2rad below
|
||||
let dLon = this.deg2rad(lon2 - lon1);
|
||||
|
@ -66,7 +64,6 @@ export class ApiBackService {
|
|||
}
|
||||
|
||||
deleteRestau(idRestau: number | undefined): Observable<any> {
|
||||
|
||||
return this.httpClient.delete<Restaurant>(`${environment.apiUrl}/delete-restaurant/${idRestau}`);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue