dev #14384 Правка ошибок отображения WPA КофеЛайк: add "О программе лояльности" menu item and hide "О приложении" menu item

This commit is contained in:
nikolay 2023-07-24 12:08:26 +04:00
parent 86c913b4c1
commit 3e9544ff96
3 changed files with 17 additions and 8 deletions

View File

@ -15,11 +15,19 @@
<div class="menu__dropdown" *ngIf="showDropdown">
<ul>
<menu-item [handler]="handler(aboutApp)">
<!-- <menu-item [handler]="handler(aboutApp)">
<span class="material-icons icon" style="color: var(--main-color_2)">
info
</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>
<ng-container *ngIf="isios">
<menu-item [handler]="handler(addToWallet)">

View File

@ -6,6 +6,7 @@ import { CookiesService } from 'src/app/services/cookies.service';
import { MatBottomSheet } from '@angular/material/bottom-sheet';
import { ExitComponent } from 'src/app/components/exit/exit.component';
import { AuthService } from 'src/app/services/auth.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-navbar[title]',
@ -24,7 +25,8 @@ export class NavbarComponent implements OnInit {
private appleWalletService: AppleWalletService,
private cookiesService: CookiesService,
private _bottomSheet: MatBottomSheet,
private authService: AuthService
private authService: AuthService,
private router: Router
) {}
handler(cb: () => void): (e: any) => void {
@ -86,4 +88,8 @@ export class NavbarComponent implements OnInit {
notify = () => {
this.messagingService.requestPermission();
};
navigateToLoyality = () => {
this.router.navigate(['loyality-program']);
};
}

View File

@ -42,11 +42,6 @@
[loading]="authService.loading"
></app-last-order>
<a class="guest-card__loyalty-program" routerLink="loyality-program">
Подробнее о правилах
<br />
Программы лояльности
</a>
</ng-container>
<ng-container *ngIf="authService.error">
<img src="./assets/broken.jpg" alt="" />