Files
DiceCloud/app/imports/client/ui/properties/treeNodeViews/treeNodeViewMixin.js
ThaumRystra b90cc2e467 Removed damage effects from tree views
The totals of those effects are already accounted for in the displayed number
2024-10-29 16:06:46 +02:00

26 lines
533 B
JavaScript

import PROPERTIES from '/imports/constants/PROPERTIES';
import PropertyIcon from '/imports/client/ui/properties/shared/PropertyIcon.vue';
export default {
components: {
PropertyIcon,
},
props: {
model: {
type: Object,
default: () => ({}),
},
selected: Boolean,
hideIcon: Boolean,
},
computed: {
title() {
let model = this.model;
if (!model) return;
if (model.name) return model.name;
let prop = PROPERTIES[model.type]
return prop && prop.name;
}
}
}