wip-formazione #3
@@ -149,7 +149,7 @@
|
|||||||
<w-button @click="apriDialogConfig()">
|
<w-button @click="apriDialogConfig()">
|
||||||
<img src="/gear.png" width="25" />
|
<img src="/gear.png" width="25" />
|
||||||
</w-button>
|
</w-button>
|
||||||
<w-button @click="sp.servHome = !sp.servHome">
|
<w-button @click="cambiaPalla" :disabled="!isPunteggioZeroZero">
|
||||||
<img src="/serv.png" width="25" />
|
<img src="/serv.png" width="25" />
|
||||||
</w-button>
|
</w-button>
|
||||||
<w-confirm top left question="Azzero punteggio ?" cancel="NO" confirm="SI" @confirm="resetta">
|
<w-confirm top left question="Azzero punteggio ?" cancel="NO" confirm="SI" @confirm="resetta">
|
||||||
|
|||||||
@@ -38,6 +38,11 @@ export default {
|
|||||||
}
|
}
|
||||||
this.abilitaTastiSpeciali();
|
this.abilitaTastiSpeciali();
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
isPunteggioZeroZero() {
|
||||||
|
return this.sp.punt.home === 0 && this.sp.punt.guest === 0;
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
closeApp() {
|
closeApp() {
|
||||||
var win = window.open("", "_self");
|
var win = window.open("", "_self");
|
||||||
@@ -69,6 +74,13 @@ export default {
|
|||||||
this.sp.striscia = { home: [0], guest: [0] }
|
this.sp.striscia = { home: [0], guest: [0] }
|
||||||
this.sp.servizioPrecedente = []
|
this.sp.servizioPrecedente = []
|
||||||
},
|
},
|
||||||
|
cambiaPalla() {
|
||||||
|
if (!this.isPunteggioZeroZero) {
|
||||||
|
this.$waveui.notify("Cambio palla consentito solo a inizio set (0-0)", "warning");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.sp.servHome = !this.sp.servHome;
|
||||||
|
},
|
||||||
incSet(team) {
|
incSet(team) {
|
||||||
if (this.sp.set[team] == 2) {
|
if (this.sp.set[team] == 2) {
|
||||||
this.sp.set[team] = 0;
|
this.sp.set[team] = 0;
|
||||||
@@ -216,7 +228,7 @@ export default {
|
|||||||
} else if (e.shiftKey && e.key == "ArrowRight") {
|
} else if (e.shiftKey && e.key == "ArrowRight") {
|
||||||
this.incSet("guest")
|
this.incSet("guest")
|
||||||
} else if (e.ctrlKey && e.key == "ArrowLeft") {
|
} else if (e.ctrlKey && e.key == "ArrowLeft") {
|
||||||
this.sp.servHome = !this.sp.servHome
|
this.cambiaPalla()
|
||||||
} else { return false }
|
} else { return false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user