Added labels to healthBars and improved attribute dialog opening

This commit is contained in:
Stefan Zermatten
2019-01-30 16:38:47 +02:00
parent a80d070533
commit e357b29145
8 changed files with 165 additions and 79 deletions

View File

@@ -2,6 +2,7 @@
<health-bar-card
:attributes="attributes"
@change="healthBarChanged"
@click="healthBarClicked"
/>
</template>
@@ -29,6 +30,13 @@
},
},
methods: {
healthBarClicked({_id, elementId}){
this.$store.commit("pushDialogStack", {
component: "attribute-dialog-container",
elementId,
data: {_id},
});
},
healthBarChanged({_id, change}){
adjustAttribute.call({
_id,