diff --git a/resources/js/components/gallery/albumModule/AlbumPanel.vue b/resources/js/components/gallery/albumModule/AlbumPanel.vue index f70183658b7..21d03a1deb3 100644 --- a/resources/js/components/gallery/albumModule/AlbumPanel.vue +++ b/resources/js/components/gallery/albumModule/AlbumPanel.vue @@ -68,6 +68,7 @@ v-if="layoutConfig !== null && photos !== null && photos.length > 0" header="gallery.album.header_photos" :photos="photos" + :photos-timeline="photosTimeline" :album="album" :gallery-config="layoutConfig" :photo-layout="config.photo_layout" @@ -125,6 +126,7 @@ import AlbumStatistics from "@/components/drawers/AlbumStatistics.vue"; import { useTogglablesStateStore } from "@/stores/ModalsState"; import { usePhotoRoute } from "@/composables/photo/photoRoute"; import { useRouter } from "vue-router"; +import { type SplitData } from "@/composables/album/splitter"; const router = useRouter(); @@ -135,6 +137,8 @@ const props = defineProps<{ | App.Http.Resources.Models.TagAlbumResource | App.Http.Resources.Models.SmartAlbumResource | undefined; + photos: App.Http.Resources.Models.PhotoResource[]; + photosTimeline: SplitData[] | undefined; config: App.Http.Resources.GalleryConfigs.AlbumConfig | undefined; user: App.Http.Resources.Models.UserResource | undefined; layoutConfig: App.Http.Resources.GalleryConfigs.PhotoLayoutConfig; @@ -144,7 +148,8 @@ const props = defineProps<{ const modelAlbum = computed(() => props.modelAlbum); const album = computed(() => props.album); const hasHidden = computed(() => modelAlbum.value !== undefined && modelAlbum.value.albums.filter((album) => album.is_nsfw).length > 0); -const photos = computed(() => album.value?.photos ?? []); +const photos = computed(() => props.photos); +const photosTimeline = computed(() => props.photosTimeline); const config = ref(props.config); diff --git a/resources/js/components/gallery/albumModule/AlbumThumbPanel.vue b/resources/js/components/gallery/albumModule/AlbumThumbPanel.vue index 6db9f9c7a09..4e6534d0ee1 100644 --- a/resources/js/components/gallery/albumModule/AlbumThumbPanel.vue +++ b/resources/js/components/gallery/albumModule/AlbumThumbPanel.vue @@ -56,15 +56,15 @@ diff --git a/resources/js/components/gallery/albumModule/PhotoThumbPanel.vue b/resources/js/components/gallery/albumModule/PhotoThumbPanel.vue index cb2bbc06d4d..a918b7f7983 100644 --- a/resources/js/components/gallery/albumModule/PhotoThumbPanel.vue +++ b/resources/js/components/gallery/albumModule/PhotoThumbPanel.vue @@ -11,14 +11,14 @@ :galleryConfig="props.galleryConfig" :selectedPhotos="props.selectedPhotos" :iter="0" - :idx="0" + :group-idx="0" @clicked="propagateClicked" @selected="propagateSelected" @contexted="propagateMenuOpen" :isTimeline="isTimeline" />