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 { DepositComponent } from '../deposit/deposit.component';
|
||||
import { ConfirmationComponent } from '../../shared/components/confirmation/confirmation.component';
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'app-homepage',
|
||||
|
@ -18,16 +18,10 @@ export default class HomeComponent implements OnInit {
|
|||
isDepositModalOpen = false;
|
||||
isDepositSuccessful = false;
|
||||
|
||||
constructor(
|
||||
public route: ActivatedRoute,
|
||||
public router: Router
|
||||
) {}
|
||||
constructor(public route: ActivatedRoute) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.isDepositSuccessful = this.route.snapshot.queryParams['success'] == 'true';
|
||||
|
||||
this.router.navigate([], { queryParams: {} });
|
||||
|
||||
if (this.isDepositSuccessful) {
|
||||
this.openDepositConfirmationModal();
|
||||
}
|
||||
|
|
Reference in a new issue