mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	show leaves on tokens with global reminders
This commit is contained in:
		
							parent
							
								
									e9c50e2f4b
								
							
						
					
					
						commit
						935386a243
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		|  | @ -19,10 +19,7 @@ | |||
|       class="leaf-right" | ||||
|       v-if="role.otherNight || role.otherNightReminder" | ||||
|     ></span> | ||||
|     <span | ||||
|       v-if="role.reminders && role.reminders.length" | ||||
|       :class="['leaf-top' + role.reminders.length]" | ||||
|     ></span> | ||||
|     <span v-if="reminderLeaves" :class="['leaf-top' + reminderLeaves]"></span> | ||||
|     <span class="leaf-orange" v-if="role.setup"></span> | ||||
|     <svg viewBox="0 0 150 150" class="name"> | ||||
|       <path | ||||
|  | @ -61,6 +58,12 @@ export default { | |||
|     } | ||||
|   }, | ||||
|   computed: { | ||||
|     reminderLeaves: function() { | ||||
|       return ( | ||||
|         (this.role.reminders || []).length + | ||||
|         (this.role.remindersGlobal || []).length | ||||
|       ); | ||||
|     }, | ||||
|     ...mapState(["grimoire"]) | ||||
|   }, | ||||
|   data() { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue