feat: apri config automaticamente dopo il reset
Dopo aver azzerato la partita il dialog di configurazione si apre subito, con nomi e modalità correnti e formazioni resettate ai default — stesso comportamento già presente al termine di ogni set.
This commit is contained in:
@@ -267,6 +267,14 @@ export default {
|
|||||||
doReset() {
|
doReset() {
|
||||||
this.sendAction({ type: 'resetta' })
|
this.sendAction({ type: 'resetta' })
|
||||||
this.confirmReset = false
|
this.confirmReset = false
|
||||||
|
this.configData = {
|
||||||
|
nomeHome: this.state.sp.nomi.home,
|
||||||
|
nomeGuest: this.state.sp.nomi.guest,
|
||||||
|
modalita: this.state.modalitaPartita,
|
||||||
|
formHome: ["1", "2", "3", "4", "5", "6"],
|
||||||
|
formGuest: ["1", "2", "3", "4", "5", "6"],
|
||||||
|
}
|
||||||
|
this.showConfig = true
|
||||||
},
|
},
|
||||||
undoUltimoPoint() {
|
undoUltimoPoint() {
|
||||||
this.sendAction({ type: 'decPunt' })
|
this.sendAction({ type: 'decPunt' })
|
||||||
|
|||||||
Reference in New Issue
Block a user