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>
|
<template>
|
||||||
<Modal
|
<Modal v-if="modals.role && availableRoles.length" @close="close()">
|
||||||
v-if="modals.role && availableRoles.length"
|
|
||||||
@close="toggleModal('role')"
|
|
||||||
>
|
|
||||||
<h3>
|
<h3>
|
||||||
Choose a new character for
|
Choose a new character for
|
||||||
{{
|
{{
|
||||||
|
@ -109,6 +106,10 @@ export default {
|
||||||
isBluffs() {
|
isBluffs() {
|
||||||
return this.playerIndex > 0;
|
return this.playerIndex > 0;
|
||||||
},
|
},
|
||||||
|
close() {
|
||||||
|
this.tab = "editionRoles";
|
||||||
|
this.toggleModal("role");
|
||||||
|
},
|
||||||
...mapMutations(["toggleModal"])
|
...mapMutations(["toggleModal"])
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue