mirror of https://github.com/bra1n/townsquare.git
show leaves on tokens with global reminders
This commit is contained in:
parent
fe51d60839
commit
30aa5cdf8a
|
@ -19,10 +19,7 @@
|
||||||
class="leaf-right"
|
class="leaf-right"
|
||||||
v-if="role.otherNight || role.otherNightReminder"
|
v-if="role.otherNight || role.otherNightReminder"
|
||||||
></span>
|
></span>
|
||||||
<span
|
<span v-if="reminderLeaves" :class="['leaf-top' + reminderLeaves]"></span>
|
||||||
v-if="role.reminders && role.reminders.length"
|
|
||||||
:class="['leaf-top' + role.reminders.length]"
|
|
||||||
></span>
|
|
||||||
<span class="leaf-orange" v-if="role.setup"></span>
|
<span class="leaf-orange" v-if="role.setup"></span>
|
||||||
<svg viewBox="0 0 150 150" class="name">
|
<svg viewBox="0 0 150 150" class="name">
|
||||||
<path
|
<path
|
||||||
|
@ -61,6 +58,12 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
reminderLeaves: function() {
|
||||||
|
return (
|
||||||
|
(this.role.reminders || []).length +
|
||||||
|
(this.role.remindersGlobal || []).length
|
||||||
|
);
|
||||||
|
},
|
||||||
...mapState(["grimoire"])
|
...mapState(["grimoire"])
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|
Loading…
Reference in New Issue