From d22c4c243f8a14a1f37373e8a12039b4a72645ef Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Wed, 2 Apr 2025 11:38:14 +0200 Subject: [PATCH] feat(game-info): add placeholder and disable bet input --- .../blackjack/components/game-info/game-info.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts b/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts index 9fa4c83..df29e81 100644 --- a/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts +++ b/frontend/src/app/feature/game/blackjack/components/game-info/game-info.component.ts @@ -67,10 +67,12 @@ import { BettingService } from '@blackjack/services/betting.service'; type="number" id="bet" formControlName="bet" - class="w-full px-3 py-2 bg-deep-blue-light text-white rounded focus:outline-none focus:ring-2 focus:ring-emerald" + class="w-full px-3 py-2 bg-deep-blue-light text-white rounded focus:outline-none focus:ring-2 focus:ring-emerald disabled:opacity-50" [min]="1" [max]="balance" step="0.01" + [disabled]="gameInProgress || isActionInProgress" + [placeholder]="balance | currency: 'EUR'" /> @if (betForm.get('bet')?.errors?.['required'] && betForm.get('bet')?.touched) { Bitte geben Sie einen Einsatz ein