This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
2021-08-18 11:19:24 -07:00
|
|
|
<template>
|
|
|
|
<li class="mb-2">
|
|
|
|
<span v-if="range" class="badge bg-primary">{{ event.getRange(range) }}</span>
|
|
|
|
<Flag v-if="event.flag" name="" alt="" :img="`/flags/${event.flag}.png`"/>
|
|
|
|
<Icon v-else v="arrow-circle-right"/>
|
2021-09-25 07:25:40 -07:00
|
|
|
<T v-if="$te(`calendar.events.${eventName}`)" :params="{param: eventParam}">calendar.events.{{eventName}}</T>
|
|
|
|
<LinkedText v-else :text="eventName"/>
|
2021-08-18 11:19:24 -07:00
|
|
|
</li>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
|
|
|
event: { required: true },
|
|
|
|
range: {},
|
|
|
|
},
|
2021-09-25 07:25:40 -07:00
|
|
|
computed: {
|
|
|
|
eventName() {
|
|
|
|
return this.event.name.split('$')[0];
|
|
|
|
},
|
|
|
|
eventParam() {
|
|
|
|
return this.event.name.split('$')[1] || null;
|
|
|
|
},
|
|
|
|
}
|
2021-08-18 11:19:24 -07:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|