Add a maintenance pause/resume switch and a proper user navbar
RoundConfig gets a paused flag toggled via new POST /admin/pause and /admin/resume endpoints (audit-logged, surfaced as a "Manutenzione" card in the admin Parametri view). Pausing only stops the *next* round from opening once the current one closes — rounds/service.py:open_new_round_if_needed still lets an in-progress round finish, draw, and pay out its winner normally. GET /rounds/current exposes lottery_paused so the user page shows a maintenance banner (even while logged out) instead of silently going idle. Also replaces the user dashboard's stacked account-bar card + bento-grid menu with a single sticky navbar (identity row + Deposito/Bet/Prelievo tabs), and moves the page content into a dedicated .app-shell container so the navbar itself can span full width.
This commit is contained in:
1 parent
78109aa4c4
commit
162a63d04a
12 files changed
+299
-72
No files matched your search
@@ -52,6 +52,14 @@ messaggio:
|
||||
|
||||
Il messaggio resta visibile fino all'apertura del round successivo.
|
||||
|
||||
### Avviso di manutenzione
|
||||
|
||||
Se l'operatore ha messo in pausa la lotteria per manutenzione, in cima alla
|
||||
pagina (visibile anche prima del login) compare un avviso: il round
|
||||
eventualmente in corso viene comunque **completato normalmente**, vincitore
|
||||
incluso, ma **non ne parte uno nuovo** finché la manutenzione non termina.
|
||||
L'avviso sparisce da solo appena l'operatore riprende la lotteria.
|
||||
|
||||
### Deposito
|
||||
|
||||
- Il tuo **saldo interno** (accreditato dopo 1 conferma di rete) con bottone
|
||||
|
||||
Reference in new issue
Block a user