Merge branch 'main' into renovate/all-minor-patch
All checks were successful
All checks were successful
This commit is contained in:
commit
374175d386
1 changed files with 8 additions and 2 deletions
|
@ -5,7 +5,7 @@ import { Game } from '../../model/Game';
|
|||
import { Transaction } from '../../model/Transaction';
|
||||
import { DepositComponent } from '../deposit/deposit.component';
|
||||
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-homepage',
|
||||
|
@ -18,10 +18,16 @@ export default class HomeComponent implements OnInit {
|
|||
isDepositModalOpen = false;
|
||||
isDepositSuccessful = false;
|
||||
|
||||
constructor(public route: ActivatedRoute) {}
|
||||
constructor(
|
||||
public route: ActivatedRoute,
|
||||
public router: Router
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
||||
|
||||
this.router.navigate([], { queryParams: {} });
|
||||
|
||||
if (this.isDepositSuccessful) {
|
||||
this.openDepositConfirmationModal();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue