Skip to content

Commit

Permalink
Merge pull request #184 from os2ulf/feature/OS2UOL-974
Browse files Browse the repository at this point in the history
OS2UOL-974: More dynamic video component
  • Loading branch information
tutaru99 authored Nov 19, 2024
2 parents eae5b26 + 31060ef commit b512e55
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions components/view-components/VideoComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,13 @@ const props = defineProps({
/>
</div>
<div class="col-xs-12 col-sm-6">
<VideoPlayer v-if="data?.videoArr" :videoArr="data.videoArr" />
<VideoPlayer
v-if="
data?.videoArr?.field_video_url ||
data?.videoArr[0]?.field_video_url?.url
"
:videoArr="data.videoArr"
/>
</div>
</div>

Expand Down Expand Up @@ -85,7 +91,10 @@ const props = defineProps({
:key="item.id"
class="video-component__layout-carousel__slide"
>
<VideoPlayer :videoArr="item" />
<VideoPlayer
v-if="item?.field_video_url || item?.field_video_url?.url"
:videoArr="item"
/>
</SwiperSlide>
</Swiper>
</div>
Expand Down

0 comments on commit b512e55

Please sign in to comment.