fix: closing of deposit confirmation modal

This commit is contained in:
Lea 2025-03-05 10:34:08 +01:00
parent caf2794489
commit 95889fc937
2 changed files with 9 additions and 1 deletions

View file

@ -71,7 +71,7 @@
</div> </div>
</div> </div>
<app-confirmation></app-confirmation> <app-confirmation [successful]="isDepositSuccessful" (close)="closeDepositSuccessfulModal()"></app-confirmation>
<div class="card p-4"> <div class="card p-4">
<h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3> <h3 class="section-heading text-xl mb-4">Letzte Transaktionen</h3>

View file

@ -15,6 +15,7 @@ import {ConfirmationComponent} from "../../shared/components/confirmation/confir
}) })
export default class HomeComponent { export default class HomeComponent {
isDepositModalOpen = false; isDepositModalOpen = false;
isDepositSuccessful = true;
featuredGames: Game[] = [ featuredGames: Game[] = [
{ {
@ -78,4 +79,11 @@ export default class HomeComponent {
closeDepositModal() { closeDepositModal() {
this.isDepositModalOpen = false; this.isDepositModalOpen = false;
} }
openDepositSuccessfulModal() {
this.isDepositSuccessful = true;
}
closeDepositSuccessfulModal() {
this.isDepositSuccessful = false;
}
} }