diff --git a/src/components/photos/PhotoCarousel.vue b/src/components/photos/PhotoCarousel.vue index 16c01d6..45264c6 100644 --- a/src/components/photos/PhotoCarousel.vue +++ b/src/components/photos/PhotoCarousel.vue @@ -11,6 +11,10 @@ const props = defineProps({ type: String, required: false }, + carouselTitle: { + type: String, + required: false + }, defaultTitle: { type: String, required: false @@ -43,7 +47,21 @@ watch(() => props.photos, (newVal) => { v-bind="$attrs" > - + + + + + + {{ carouselTitle }} + + {{photos.length}} fotografií + + + diff --git a/src/graphql/queries/copilots.js b/src/graphql/queries/copilots.js index 1bc2036..16f85c8 100644 --- a/src/graphql/queries/copilots.js +++ b/src/graphql/queries/copilots.js @@ -1,5 +1,5 @@ import gql from "graphql-tag"; -// import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list"; +import {FRAGMENT_FLIGHT_LIST_INFO} from "src/graphql/fragments/flight_list"; import {FRAGMENT_COPILOT_FULL_INFO, FRAGMENT_COPILOT_LIST_INFO} from "src/graphql/fragments/copilot"; export const COPILOTS_LIST = gql` @@ -18,12 +18,11 @@ query copilot($id: Int!) { ...copilotFullInfo flights { - id - name - + ...flightListInfo } } } ${FRAGMENT_COPILOT_FULL_INFO} +${FRAGMENT_FLIGHT_LIST_INFO} `; diff --git a/src/pages/profile/flight/FlightDetailPage.vue b/src/pages/profile/flight/FlightDetailPage.vue index de774aa..994361a 100644 --- a/src/pages/profile/flight/FlightDetailPage.vue +++ b/src/pages/profile/flight/FlightDetailPage.vue @@ -69,7 +69,11 @@ const copyLinkToClipboard = () => { - +