Fixed modifiers not being computed and displayed

This commit is contained in:
Thaum Rystra
2020-04-27 13:19:23 +02:00
parent a2bae8d12a
commit 17c9d270e6
3 changed files with 6 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ let ComputedOnlyAttributeSchema = new SimpleSchema({
optional: true,
},
// The computed modifier, provided the attribute type is `ability`
mod: {
modifier: {
type: SimpleSchema.Integer,
optional: true,
},

View File

@@ -15,7 +15,7 @@
/>
<ability-list-tile
:key="ability._id"
v-bind="ability"
:model="ability"
:data-id="ability._id"
@click="clickProperty({_id: ability._id})"
/>

View File

@@ -5,16 +5,16 @@
>
<v-list-tile-action class="mr-4">
<div class="display-1 mod">
{{ numberToSignedString(mod) }}
{{ numberToSignedString(model.modifier) }}
</div>
<div class="title value">
{{ value }}
{{ model.value }}
</div>
</v-list-tile-action>
<v-list-tile-content>
<v-list-tile-title>
{{ name }}
{{ model.name }}
</v-list-tile-title>
</v-list-tile-content>
</v-list-tile>
@@ -24,9 +24,7 @@
import numberToSignedString from '/imports/ui/utility/numberToSignedString.js';
export default {
props: {
value: Number,
mod: Number,
name: String,
model: {type: Object, required: true},
},
computed: {
hasClickListener(){