mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	making reminders work with plus 1 bluffs
This commit is contained in:
		
							parent
							
								
									6ed2d1e109
								
							
						
					
					
						commit
						971f7182ef
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		|  | @ -88,6 +88,8 @@ export default { | ||||||
|       this.$store.state.otherRoles.forEach((role) => { |       this.$store.state.otherRoles.forEach((role) => { | ||||||
|         if (players.some((p) => p.role.id === role.id)) { |         if (players.some((p) => p.role.id === role.id)) { | ||||||
|           reminders = [...reminders, ...role.reminders.map(mapReminder(role))]; |           reminders = [...reminders, ...role.reminders.map(mapReminder(role))]; | ||||||
|  |         } else if (bluffs.some((bluff) => bluff.id === role.id)) { | ||||||
|  |           reminders = [...reminders, ...role.reminders.map(mapReminder(role))]; | ||||||
|         } |         } | ||||||
|       }); |       }); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -88,7 +88,6 @@ export default { | ||||||
|       var filteredRoles = this.otherRoles.filter((role) => { |       var filteredRoles = this.otherRoles.filter((role) => { | ||||||
|         return role.name.toLowerCase().includes(this.filter.toLowerCase()); |         return role.name.toLowerCase().includes(this.filter.toLowerCase()); | ||||||
|       }); |       }); | ||||||
|       console.log(filteredRoles); |  | ||||||
|       return filteredRoles; |       return filteredRoles; | ||||||
|     }, |     }, | ||||||
|     availableRoles() { |     availableRoles() { | ||||||
|  | @ -141,6 +140,7 @@ export default { | ||||||
|     }, |     }, | ||||||
|     close() { |     close() { | ||||||
|       this.tab = "editionRoles"; |       this.tab = "editionRoles"; | ||||||
|  |       this.filter = ""; | ||||||
|       this.toggleModal("role"); |       this.toggleModal("role"); | ||||||
|     }, |     }, | ||||||
|     ...mapMutations(["toggleModal"]), |     ...mapMutations(["toggleModal"]), | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue