Sprava eventu a organizaci
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<script setup>
|
||||
|
||||
import AvatarsGroup from "components/AvatarsGroup.vue";
|
||||
import AvatarsGroup from "components/avatars/AvatarsGroup.vue";
|
||||
|
||||
const props = defineProps({
|
||||
items: {
|
||||
@@ -14,10 +13,14 @@ const getCoverPhotos = (item) => item.flights.filter(f => !!f.coverPhoto).map(f
|
||||
|
||||
<template>
|
||||
<q-list bordered separator>
|
||||
<q-item clickable v-ripple v-for="event of items" :key="event" :to="{name: 'eventDetail', params: {id: event.id }}">
|
||||
<q-item
|
||||
clickable
|
||||
:to="{name: 'eventDetail', params: {id: event.id }}"
|
||||
v-ripple
|
||||
v-for="event of items" :key="event"
|
||||
>
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
|
||||
<q-avatar icon="event" color="primary" text-color="white" v-if="event.flights.length === 0"/>
|
||||
<AvatarsGroup :avatars="getCoverPhotos(event)" v-else/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user