Fix: blocca incrementi a set concluso senza notifiche
- Rimuove il messaggio "set terminato" mantenendo il blocco incrementi - Semplifica il controllo: stop su checkVittoria() senza flag persistente - Evita ripetizioni dovute a shortcut (Ctrl/Shift + ↑)
This commit is contained in:
@@ -90,9 +90,8 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
incPunt(team) {
|
incPunt(team) {
|
||||||
// Controlla se c'è già una condizione di vittoria
|
// Se il set è già terminato, evita ulteriori incrementi
|
||||||
if (this.checkVittoria()) {
|
if (this.checkVittoria()) {
|
||||||
this.$waveui.notify("Il set è terminato!", "warning");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -171,6 +170,7 @@ export default {
|
|||||||
|
|
||||||
// Ripristina il servizio allo stato precedente
|
// Ripristina il servizio allo stato precedente
|
||||||
this.sp.servHome = statoServizio.servHome;
|
this.sp.servHome = statoServizio.servHome;
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// decPunt(team) {
|
// decPunt(team) {
|
||||||
@@ -249,4 +249,4 @@ export default {
|
|||||||
} else { return false }
|
} else { return false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user