mirror of https://github.com/bra1n/townsquare.git
adding additional validation to changePronoun method in player.vue
This commit is contained in:
parent
e058f065df
commit
ec05b07329
|
@ -240,6 +240,8 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changePronoun() {
|
changePronoun() {
|
||||||
|
if (!this.session.isSpectator || this.player.id !== this.session.playerId)
|
||||||
|
return;
|
||||||
const pronoun = prompt("Player preffered pronouns", this.player.pronoun);
|
const pronoun = prompt("Player preffered pronouns", this.player.pronoun);
|
||||||
this.$store.commit("players/setPronoun", {
|
this.$store.commit("players/setPronoun", {
|
||||||
player: this.player,
|
player: this.player,
|
||||||
|
|
Loading…
Reference in New Issue