feat(game-info): add placeholder and disable bet input
All checks were successful
All checks were successful
This commit is contained in:
parent
e9c4d4fbed
commit
d22c4c243f
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
<span class="text-xs text-accent-red">Bitte geben Sie einen Einsatz ein</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue