Removed all UI computations from viewers and components
This commit is contained in:
@@ -71,7 +71,10 @@
|
||||
/>
|
||||
</template>
|
||||
<template v-if="model.summary">
|
||||
<property-description :value="model.summary" />
|
||||
<property-description
|
||||
:string="model.summary"
|
||||
:calculations="model.summaryCalculations"
|
||||
/>
|
||||
<v-divider
|
||||
v-if="children.length"
|
||||
class="my-2"
|
||||
|
||||
@@ -53,22 +53,14 @@
|
||||
@mouseleave="hover = false"
|
||||
>
|
||||
<v-list-tile-title>
|
||||
{{ model.hitDiceSize }} <computed
|
||||
class="d-inline"
|
||||
signed
|
||||
value="constitution.modifier"
|
||||
/>
|
||||
{{ model.hitDiceSize }} {{ model.constitutionMod }}
|
||||
</v-list-tile-title>
|
||||
</v-list-tile-content>
|
||||
</v-list-tile>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import ComputedForCreature from '/imports/ui/components/computation/ComputedForCreature.vue';
|
||||
export default {
|
||||
components: {
|
||||
Computed: ComputedForCreature,
|
||||
},
|
||||
inject: {
|
||||
context: { default: {} }
|
||||
},
|
||||
|
||||
@@ -11,7 +11,10 @@
|
||||
{{ model.name }}
|
||||
</v-card-title>
|
||||
<v-card-text>
|
||||
<property-description :value="model.description" />
|
||||
<property-description
|
||||
:string="model.description"
|
||||
:calculations="model.descriptionCalculations"
|
||||
/>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user