Spiele
@@ -172,12 +153,7 @@
class="w-full flex items-center justify-center px-4 py-3 text-white font-medium border border-emerald-500 rounded-lg hover:bg-emerald-500/10 transition-colors duration-200"
>
Anmelden
@@ -186,25 +162,16 @@
class="w-full flex items-center justify-center px-4 py-3 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
>
Registrieren
}
@if (isLoggedIn()) {
-
+
+
@@ -214,12 +181,7 @@
class="w-full flex items-center justify-center px-4 py-3 bg-emerald-600 text-white font-medium rounded-lg hover:bg-emerald-500 transition-colors duration-200"
>
Einzahlen
@@ -229,13 +191,8 @@
class="w-full flex items-center justify-center px-4 py-3 bg-slate-700 text-white font-medium rounded-lg hover:bg-slate-600 border border-slate-600 transition-colors duration-200"
>
+
+
Transaktionen
@@ -244,12 +201,7 @@
class="w-full flex items-center justify-center px-4 py-3 text-red-400 font-medium border border-red-500/50 rounded-lg hover:bg-red-500/10 transition-colors duration-200"
>
Abmelden
diff --git a/frontend/src/app/shared/components/navbar/navbar.component.ts b/frontend/src/app/shared/components/navbar/navbar.component.ts
index 2d17ca5..987f13f 100644
--- a/frontend/src/app/shared/components/navbar/navbar.component.ts
+++ b/frontend/src/app/shared/components/navbar/navbar.component.ts
@@ -10,10 +10,12 @@ import {
} from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthService } from '@service/auth.service';
-import { Subscription } from 'rxjs';
+import {Observable, Subscription} from 'rxjs';
import { AnimatedNumberComponent } from '@blackjack/components/animated-number/animated-number.component';
-import { DepositComponent } from '../../../feature/deposit/deposit.component';
-import { TransactionHistoryComponent } from '../../../feature/transaction-history/transaction-history.component';
+import {DepositComponent} from "../../../feature/deposit/deposit.component";
+import {TransactionHistoryComponent} from "../../../feature/transaction-history/transaction-history.component";
+import {TransactionData} from "../../../model/TransactionData";
+import {TransactionService} from "@service/transaction.service";
@Component({
selector: 'app-navbar',