Added persona page
This commit is contained in:
34
app/imports/ui/properties/components/persona/NoteCard.vue
Normal file
34
app/imports/ui/properties/components/persona/NoteCard.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user