Aktualizace balicku, strnakovani, uprava hlavni stranky
This commit is contained in:
@@ -17,7 +17,7 @@ const props = defineProps({
|
||||
|
||||
useMeta(() => metaData({
|
||||
title: `${props.pilot.publicUsername} - Události`,
|
||||
keywords: [...commonKeywords, "pilot"],
|
||||
keywords: [...commonKeywords, "události", "letecký den",],
|
||||
description: "Detail pilota na poletani.cz",
|
||||
}));
|
||||
|
||||
@@ -28,24 +28,24 @@ useAppStore().setBreadcrumbs([
|
||||
{label: "Události"}
|
||||
]);
|
||||
|
||||
useEventsStore().fetch(props.pilot.publicUsername);
|
||||
useEventsStore().fetchPublic(props.pilot.publicUsername);
|
||||
const {isQueryRunning, events} = storeToRefs(useEventsStore());
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<PublicFlightEventSwitcher :username="pilot.publicUsername"/>
|
||||
|
||||
<FlightsListSkeleton v-if="isQueryRunning"/>
|
||||
<div class="q-mb-md">
|
||||
<FlightsListSkeleton v-if="isQueryRunning"/>
|
||||
|
||||
<q-banner class="bg-primary text-white" v-else-if="!isQueryRunning && events.length === 0">
|
||||
Tento pilot zatím nepublikoval žádnou udalost.
|
||||
</q-banner>
|
||||
<q-banner class="bg-primary text-white" v-else-if="!isQueryRunning && events.length === 0">
|
||||
Tento pilot zatím nepublikoval žádnou udalost.
|
||||
</q-banner>
|
||||
|
||||
<template v-else>
|
||||
<EventsList
|
||||
:items="events"
|
||||
:route-detail="{name: 'publicEventDetail', params: {username: pilot.publicUsername}}"
|
||||
class="q-mb-md"
|
||||
v-else
|
||||
/>
|
||||
</template>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user