Compare commits
No commits in common. "32aa75345268576dc0b33561b353e3f5acb2f579" and "c42c5577cfcf23993125b1a5198de6ec11c0dd59" have entirely different histories.
32aa753452
...
c42c5577cf
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