This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user