making change pronoun option appear for story teller as well as seated player and updating flow control logic to allow story teller to change the pronouns for any player

This commit is contained in:
Dave 2021-02-28 14:51:15 +00:00
parent f670193fba
commit 81af122458
1 changed files with 5 additions and 2 deletions

View File

@ -155,7 +155,10 @@
</li> </li>
<li <li
@click="changePronouns" @click="changePronouns"
v-if="session.isSpectator && player.id === session.playerId" v-if="
!session.isSpectator ||
(session.isSpectator && player.id === session.playerId)
"
> >
<font-awesome-icon icon="transgender" />Change Pronouns <font-awesome-icon icon="transgender" />Change Pronouns
</li> </li>
@ -242,7 +245,7 @@ export default {
}, },
methods: { methods: {
changePronouns() { changePronouns() {
if (!this.session.isSpectator || this.player.id !== this.session.playerId) if (this.session.isSpectator && this.player.id !== this.session.playerId)
return; return;
const pronouns = prompt( const pronouns = prompt(
"Player preferred pronouns", "Player preferred pronouns",