This commit is contained in:
@@ -14,7 +14,12 @@
|
|||||||
<span></span>
|
<span></span>
|
||||||
</template>
|
</template>
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title>{{ i.name }}</v-card-title>
|
<v-card-title
|
||||||
|
><v-icon class="mr-4">{{
|
||||||
|
getIconForObjectType(i.objectType)
|
||||||
|
}}</v-icon
|
||||||
|
>{{ i.name }}</v-card-title
|
||||||
|
>
|
||||||
<v-card-text>
|
<v-card-text>
|
||||||
{{ i.date }} {{ getEventName(i.event) }}
|
{{ i.date }} {{ getEventName(i.event) }}
|
||||||
{{ i.textra }}
|
{{ i.textra }}
|
||||||
@@ -73,6 +78,20 @@ export default {
|
|||||||
getIconForEvent(event) {
|
getIconForEvent(event) {
|
||||||
return this.eventTypes[event].icon;
|
return this.eventTypes[event].icon;
|
||||||
},
|
},
|
||||||
|
getIconForObjectType(otype) {
|
||||||
|
if (otype) {
|
||||||
|
return this.ayaTypes[otype].icon;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getTypeNameForEvent(event) {
|
||||||
|
if (event.objectType) {
|
||||||
|
return this.ayaTypes[event.objectType].name;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
},
|
||||||
getIconColorForEvent(event) {
|
getIconColorForEvent(event) {
|
||||||
switch (event) {
|
switch (event) {
|
||||||
case 0:
|
case 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user