mirror of https://github.com/bra1n/townsquare.git
making roles modal reset selected tab on close, stops traveller tab from showing on bluff selection and a better user experience
This commit is contained in:
parent
5a72390ac9
commit
ce6b66a33e
|
@ -1,8 +1,5 @@
|
|||
<template>
|
||||
<Modal
|
||||
v-if="modals.role && availableRoles.length"
|
||||
@close="toggleModal('role')"
|
||||
>
|
||||
<Modal v-if="modals.role && availableRoles.length" @close="close()">
|
||||
<h3>
|
||||
Choose a new character for
|
||||
{{
|
||||
|
@ -109,6 +106,10 @@ export default {
|
|||
isBluffs() {
|
||||
return this.playerIndex > 0;
|
||||
},
|
||||
close() {
|
||||
this.tab = "editionRoles";
|
||||
this.toggleModal("role");
|
||||
},
|
||||
...mapMutations(["toggleModal"])
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue