Fixed damage tree node not rendering if it has no amount
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
<template lang="html">
|
<template lang="html">
|
||||||
<div>
|
<div>
|
||||||
<div class="layout align-center justify-start" style="height:40px;">
|
<div
|
||||||
|
class="layout align-center justify-start"
|
||||||
|
style="height:40px;"
|
||||||
|
>
|
||||||
<v-icon
|
<v-icon
|
||||||
v-if="!hideIcon"
|
v-if="!hideIcon"
|
||||||
class="mr-2"
|
class="mr-2"
|
||||||
@@ -15,19 +18,24 @@
|
|||||||
<span v-if="model.target === 'self'">to self</span>
|
<span v-if="model.target === 'self'">to self</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<template v-if="showExternalDetails">
|
||||||
v-if="showExternalDetails"
|
<div
|
||||||
v-for="effect in model.amount.effects">
|
v-for="effect in (model.amount && model.amount.effects)"
|
||||||
<div v-if="effect.amount.value !== 0"
|
:key="effect._id"
|
||||||
style="position:relative; top:-15px; left:5px; height:25px;">
|
>
|
||||||
<inline-effect
|
<div
|
||||||
hide-breadcrumbs
|
v-if="effect.amount.value !== 0"
|
||||||
:key="effect._id"
|
style="position:relative; top:-15px; left:5px; height:25px;"
|
||||||
:data-id="effect._id"
|
>
|
||||||
:model="effect"
|
<inline-effect
|
||||||
/>
|
:key="effect._id"
|
||||||
|
hide-breadcrumbs
|
||||||
|
:data-id="effect._id"
|
||||||
|
:model="effect"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -37,8 +45,8 @@ import { getPropertyIcon } from '/imports/constants/PROPERTIES.js';
|
|||||||
import InlineEffect from '../components/effects/InlineEffect.vue';
|
import InlineEffect from '../components/effects/InlineEffect.vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [treeNodeViewMixin],
|
|
||||||
components: {InlineEffect},
|
components: {InlineEffect},
|
||||||
|
mixins: [treeNodeViewMixin],
|
||||||
computed: {
|
computed: {
|
||||||
icon() {
|
icon() {
|
||||||
if (this.model.damageType === 'healing') {
|
if (this.model.damageType === 'healing') {
|
||||||
|
|||||||
Reference in New Issue
Block a user