This commit is contained in:
2020-04-10 23:12:54 +00:00
parent 9fb4f460e2
commit c51d964ec1

View File

@@ -14,7 +14,12 @@
<span></span>
</template>
<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>
{{ i.date }} {{ getEventName(i.event) }}
{{ i.textra }}
@@ -73,6 +78,20 @@ export default {
getIconForEvent(event) {
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) {
switch (event) {
case 0: