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:
Dave 2021-01-09 21:23:24 +00:00
parent 5a72390ac9
commit ce6b66a33e
1 changed files with 5 additions and 4 deletions

View File

@ -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"])
}
};