Compare commits
No commits in common. "374175d3863c9dbcffa93518bf2c4da09ade854c" and "cafa2c148f1373f965e64029e526076395659bc1" have entirely different histories.
374175d386
...
cafa2c148f
1 changed files with 2 additions and 8 deletions
|
@ -5,7 +5,7 @@ import { Game } from '../../model/Game';
|
||||||
import { Transaction } from '../../model/Transaction';
|
import { Transaction } from '../../model/Transaction';
|
||||||
import { DepositComponent } from '../deposit/deposit.component';
|
import { DepositComponent } from '../deposit/deposit.component';
|
||||||
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-homepage',
|
selector: 'app-homepage',
|
||||||
|
@ -18,16 +18,10 @@ export default class HomeComponent implements OnInit {
|
||||||
isDepositModalOpen = false;
|
isDepositModalOpen = false;
|
||||||
isDepositSuccessful = false;
|
isDepositSuccessful = false;
|
||||||
|
|
||||||
constructor(
|
constructor(public route: ActivatedRoute) {}
|
||||||
public route: ActivatedRoute,
|
|
||||||
public router: Router
|
|
||||||
) {}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
||||||
|
|
||||||
this.router.navigate([], { queryParams: {} });
|
|
||||||
|
|
||||||
if (this.isDepositSuccessful) {
|
if (this.isDepositSuccessful) {
|
||||||
this.openDepositConfirmationModal();
|
this.openDepositConfirmationModal();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue