fix(controller): aggiunge tasto indietro nel dialog set vinto
Permette di annullare l'ultimo punto (decPunt) nel caso in cui l'ultimo punto del set sia stato assegnato per errore.
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
<div class="dialog-winner">{{ state.sp.nomi[setVintoTeam] }}</div>
|
||||
<div class="dialog-subtitle">Configura le formazioni per il prossimo set</div>
|
||||
<div class="dialog-buttons">
|
||||
<button class="btn btn-cancel" @click="undoUltimoPoint()">INDIETRO</button>
|
||||
<button class="btn btn-confirm" @click="doNuovoSet()">VAI AL SET SUCCESSIVO</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -471,6 +472,11 @@ export default {
|
||||
this.confirmReset = false
|
||||
},
|
||||
|
||||
undoUltimoPoint() {
|
||||
this.sendAction({ type: 'decPunt' })
|
||||
this.showSetVinto = false
|
||||
},
|
||||
|
||||
doNuovoSet() {
|
||||
this.sendAction({ type: 'nuovoSet', team: this.setVintoTeam })
|
||||
this.showSetVinto = false
|
||||
|
||||
Reference in New Issue
Block a user