Files
DiceCloud/app/imports/ui/properties/components/persona/NoteCard.vue
Stefan Zermatten 7fe2292c2a Added persona page
2020-03-13 14:56:43 +02:00

35 lines
716 B
Vue

<template lang="html">
<v-card :color="model.color" :data-id="model._id" hover @click="clickProperty(model._id)">
<v-card-title class="title">
{{model.name}}
</v-card-title>
<v-card-text>
<property-description :value="model.description"/>
</v-card-text>
</v-card>
</template>
<script>
import PropertyDescription from '/imports/ui/properties/viewers/shared/PropertyDescription.vue';
export default {
components: {
PropertyDescription,
},
props: {
model: Object,
},
methods: {
clickProperty(_id){
this.$store.commit('pushDialogStack', {
component: 'creature-property-dialog',
elementId: `${_id}`,
data: {_id},
});
},
},
};
</script>
<style lang="css" scoped>
</style>