dev #14384 Правка ошибок отображения WPA КофеЛайк: add "О программе лояльности" menu item and hide "О приложении" menu item
This commit is contained in:
parent
86c913b4c1
commit
3e9544ff96
@ -15,11 +15,19 @@
|
|||||||
|
|
||||||
<div class="menu__dropdown" *ngIf="showDropdown">
|
<div class="menu__dropdown" *ngIf="showDropdown">
|
||||||
<ul>
|
<ul>
|
||||||
<menu-item [handler]="handler(aboutApp)">
|
<!-- <menu-item [handler]="handler(aboutApp)">
|
||||||
<span class="material-icons icon" style="color: var(--main-color_2)">
|
<span class="material-icons icon" style="color: var(--main-color_2)">
|
||||||
info
|
info
|
||||||
</span>
|
</span>
|
||||||
<span class="item_title">О приложении</span>
|
<span class="item_title">О приложении</span>
|
||||||
|
</menu-item> -->
|
||||||
|
<menu-item [handler]="handler(navigateToLoyality)">
|
||||||
|
<span class="material-icons icon" style="color: var(--main-color_2)">
|
||||||
|
info
|
||||||
|
</span>
|
||||||
|
<span class="item_title">
|
||||||
|
О программе лояльности
|
||||||
|
</span>
|
||||||
</menu-item>
|
</menu-item>
|
||||||
<ng-container *ngIf="isios">
|
<ng-container *ngIf="isios">
|
||||||
<menu-item [handler]="handler(addToWallet)">
|
<menu-item [handler]="handler(addToWallet)">
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import { CookiesService } from 'src/app/services/cookies.service';
|
|||||||
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
||||||
import { ExitComponent } from 'src/app/components/exit/exit.component';
|
import { ExitComponent } from 'src/app/components/exit/exit.component';
|
||||||
import { AuthService } from 'src/app/services/auth.service';
|
import { AuthService } from 'src/app/services/auth.service';
|
||||||
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-navbar[title]',
|
selector: 'app-navbar[title]',
|
||||||
@ -24,7 +25,8 @@ export class NavbarComponent implements OnInit {
|
|||||||
private appleWalletService: AppleWalletService,
|
private appleWalletService: AppleWalletService,
|
||||||
private cookiesService: CookiesService,
|
private cookiesService: CookiesService,
|
||||||
private _bottomSheet: MatBottomSheet,
|
private _bottomSheet: MatBottomSheet,
|
||||||
private authService: AuthService
|
private authService: AuthService,
|
||||||
|
private router: Router
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
handler(cb: () => void): (e: any) => void {
|
handler(cb: () => void): (e: any) => void {
|
||||||
@ -86,4 +88,8 @@ export class NavbarComponent implements OnInit {
|
|||||||
notify = () => {
|
notify = () => {
|
||||||
this.messagingService.requestPermission();
|
this.messagingService.requestPermission();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
navigateToLoyality = () => {
|
||||||
|
this.router.navigate(['loyality-program']);
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -41,12 +41,7 @@
|
|||||||
[lastOrder]="authService.userInfo?.last_purchase"
|
[lastOrder]="authService.userInfo?.last_purchase"
|
||||||
[loading]="authService.loading"
|
[loading]="authService.loading"
|
||||||
></app-last-order>
|
></app-last-order>
|
||||||
|
|
||||||
<a class="guest-card__loyalty-program" routerLink="loyality-program">
|
|
||||||
Подробнее о правилах
|
|
||||||
<br />
|
|
||||||
Программы лояльности
|
|
||||||
</a>
|
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container *ngIf="authService.error">
|
<ng-container *ngIf="authService.error">
|
||||||
<img src="./assets/broken.jpg" alt="" />
|
<img src="./assets/broken.jpg" alt="" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user