Show creature milestone level and xp if creature has both

This commit is contained in:
Stefan Zermatten
2021-02-24 10:05:11 +02:00
parent 1b650b26b6
commit 7e3bff9677

View File

@@ -41,7 +41,7 @@
>
Level {{ creature.variables.level.value }}
</v-card-title>
<v-list>
<v-list two-line>
<v-list-tile>
<v-list-tile-content>
<v-list-tile-title
@@ -52,7 +52,14 @@
>
{{ creature.variables.milestoneLevels.value }} Milestone levels
</v-list-tile-title>
<v-list-tile-title v-else>
<v-list-tile-title
v-if="
!(creature.variables.milestoneLevels &&
creature.variables.milestoneLevels.value) ||
(creature.variables.xp &&
creature.variables.xp.value)
"
>
{{
creature.variables.xp &&
creature.variables.xp.value ||