notify when user has to pick

This commit is contained in:
Alberto Xamin 2020-11-22 17:41:36 +01:00
parent 3232cc0e6e
commit f976770aae
No known key found for this signature in database
GPG Key ID: 4F026F48309500A2

View File

@ -27,6 +27,7 @@
<Chooser v-if="shouldChooseCard" text="Scegli che carta pescare" :cards="available_cards" :select="choose"/> <Chooser v-if="shouldChooseCard" text="Scegli che carta pescare" :cards="available_cards" :select="choose"/>
<Chooser v-if="lives <= 0 && max_lives > 0" text="SEI MORTO" /> <Chooser v-if="lives <= 0 && max_lives > 0" text="SEI MORTO" />
<Chooser v-if="is_my_turn" text="GIOCA IL TUO TURNO" :key="is_my_turn" class="turn-notify" /> <Chooser v-if="is_my_turn" text="GIOCA IL TUO TURNO" :key="is_my_turn" class="turn-notify" />
<Chooser v-if="hasToPickResponse" text="ESTRAI UNA CARTA" :key="hasToPickResponse" class="turn-notify" />
</div> </div>
</template> </template>
@ -96,6 +97,9 @@ export default {
}, },
}, },
computed:{ computed:{
hasToPickResponse() {
return !this.is_my_turn && this.pending_action == 0
},
instruction() { instruction() {
if (this.pending_action == null) if (this.pending_action == null)
return '' return ''