mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	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 changed files with 5 additions and 4 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue