перенес версию
This commit is contained in:
gofnnp 2022-09-24 11:24:58 +04:00
parent 359a1a1966
commit d6ce8f9da6
7 changed files with 10 additions and 19 deletions

View File

@ -1,7 +1,3 @@
<span class="version">
v{{version}}
</span>
<div class="footer-buttons-container">
<!-- *ngIf="deferredPrompt && token?.length" -->
<button

View File

@ -31,18 +31,6 @@
}
}
.version {
position: fixed;
bottom: 16px;
left: 8px;
background: #09467f;
padding: 6px;
color: #fff;
border-radius: 4px;
font-weight: 100;
font-size: 12px;
}
@media (display-mode: standalone) {
.download {
display: none;

View File

@ -1,6 +1,5 @@
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
import { MessageService } from 'primeng/api';
import { environment } from 'src/environments/environment';
@Component({
selector: 'app-footer-buttons',
@ -14,7 +13,6 @@ export class FooterButtonsComponent implements OnInit {
@Output() downloadingPWA = new EventEmitter<null>();
@Output() requestingPermission = new EventEmitter<null>();
public deviceType: 'ios' | 'android' | null = null;
public version: string = environment.version;
constructor(
private messageService: MessageService,

View File

@ -63,4 +63,7 @@
</li>
</ul>
</nav>
<span class="version">
v{{version}}
</span>
</div>

View File

@ -71,5 +71,8 @@
position: absolute;
top: 69px;
}
.version {
opacity: .5;
}
}
}

View File

@ -32,6 +32,7 @@ export class AccountComponent implements OnInit {
public currentPage!: Page;
public handleHttpErrorFunc = this.handleHttpError.bind(this);
private ref!: DynamicDialogRef;
public version: string = environment.version;
readonly PageCode = PageCode;
readonly pageList = environment.hasBonusProgram

View File

@ -1,5 +1,7 @@
<div class="main-container">
<app-navbar></app-navbar>
<p-toast position="top-center"></p-toast>
<app-footer-buttons [token]="token" [deferredPrompt]="deferredPrompt" [isPermissionNotifications]="isPermissionNotifications" (downloadingPWA)="downloadPWA()" (requestingPermission)="requestPermission()"></app-footer-buttons>
<app-footer-buttons [token]="token" [deferredPrompt]="deferredPrompt"
[isPermissionNotifications]="isPermissionNotifications" (downloadingPWA)="downloadPWA()"
(requestingPermission)="requestPermission()"></app-footer-buttons>
</div>