show leaves on tokens with global reminders

This commit is contained in:
Steffen 2021-07-14 13:23:08 +02:00
parent fe51d60839
commit 30aa5cdf8a
No known key found for this signature in database
GPG Key ID: 764D74E98267DFC6
1 changed files with 7 additions and 4 deletions

View File

@ -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() {