Compare commits
2 Commits
3e79304e5c
...
c0cfbcbcbb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0cfbcbcbb | ||
|
|
688c225911 |
@@ -19,5 +19,5 @@
|
|||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
||||||
</main>
|
</main>
|
||||||
<app-footer></app-footer>
|
<app-footer></app-footer>
|
||||||
<app-telegram-login />
|
<!-- <app-telegram-login /> -->
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,6 @@ import { Title } from '@angular/platform-browser';
|
|||||||
import { HeaderComponent } from './components/header/header.component';
|
import { HeaderComponent } from './components/header/header.component';
|
||||||
import { FooterComponent } from './components/footer/footer.component';
|
import { FooterComponent } from './components/footer/footer.component';
|
||||||
import { BackButtonComponent } from './components/back-button/back-button.component';
|
import { BackButtonComponent } from './components/back-button/back-button.component';
|
||||||
import { TelegramLoginComponent } from './components/telegram-login/telegram-login.component';
|
|
||||||
import { ApiService } from './services';
|
import { ApiService } from './services';
|
||||||
import { interval, concat } from 'rxjs';
|
import { interval, concat } from 'rxjs';
|
||||||
import { filter, first } from 'rxjs/operators';
|
import { filter, first } from 'rxjs/operators';
|
||||||
@@ -17,7 +16,7 @@ import { TranslateService } from './i18n/translate.service';
|
|||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
imports: [RouterOutlet, HeaderComponent, FooterComponent, BackButtonComponent, TelegramLoginComponent, TranslatePipe],
|
imports: [RouterOutlet, HeaderComponent, FooterComponent, BackButtonComponent, TranslatePipe],
|
||||||
templateUrl: './app.html',
|
templateUrl: './app.html',
|
||||||
styleUrl: './app.scss'
|
styleUrl: './app.scss'
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ export class TelegramLoginComponent implements OnDestroy {
|
|||||||
private pollTimer?: ReturnType<typeof setInterval>;
|
private pollTimer?: ReturnType<typeof setInterval>;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
|
console.log('TelegramLoginComponent initialized');
|
||||||
effect(() => {
|
effect(() => {
|
||||||
if (this.showDialog()) {
|
if (this.showDialog()) {
|
||||||
this.initQrLogin();
|
this.initQrLogin();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export interface AuthSession {
|
export interface AuthSession {
|
||||||
sessionId: string;
|
sessionId: string;
|
||||||
telegramUserId: number;
|
telegramUserId: any;
|
||||||
username: string | null;
|
username: string | null;
|
||||||
displayName: string;
|
displayName: string;
|
||||||
active: boolean;
|
active: boolean;
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ export class CartComponent implements OnDestroy {
|
|||||||
private router: Router,
|
private router: Router,
|
||||||
private langService: LanguageService
|
private langService: LanguageService
|
||||||
) {
|
) {
|
||||||
|
console.log('CartComponent initialized');
|
||||||
this.items = this.cartService.items;
|
this.items = this.cartService.items;
|
||||||
this.itemCount = this.cartService.itemCount;
|
this.itemCount = this.cartService.itemCount;
|
||||||
this.totalPrice = this.cartService.totalPrice;
|
this.totalPrice = this.cartService.totalPrice;
|
||||||
@@ -232,6 +233,7 @@ export class CartComponent implements OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
startPolling(): void {
|
startPolling(): void {
|
||||||
|
console.log('Starting payment status polling CART');
|
||||||
this.stopPolling();
|
this.stopPolling();
|
||||||
if (!this.paymentId()) {
|
if (!this.paymentId()) {
|
||||||
this.setPaymentError();
|
this.setPaymentError();
|
||||||
|
|||||||
Reference in New Issue
Block a user