Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.
TypeScript albumsexif-extractiongeocodinglive-photomotion-photophoto-galleryphoto-sharingwebgl-viewer
fix(dashboard): correct album cover fallbacks and empty album placeholders
Timothy Yinad7beada315f
diff --git a/app/pages/dashboard/albums.vue b/app/pages/dashboard/albums.vueindex 0141f230..12026aac 100644--- a/app/pages/dashboard/albums.vue+++ b/app/pages/dashboard/albums.vue@@ -136,9 +136,10 @@ const loadAlbums = async () => {}))for (const album of albums.value) {- if (album.coverPhotoId && allPhotos.value.length > 0) {+ const displayCoverPhotoId = album.coverPhotoId || album.photoIds?.[0]+ if (displayCoverPhotoId && allPhotos.value.length > 0) {const coverPhoto = allPhotos.value.find(- (p) => p.id === album.coverPhotoId,+ (p) => p.id === displayCoverPhotoId,)if (coverPhoto) {album.coverPhoto = coverPhoto@@ -584,7 +585,7 @@ const columns = computed<any[]>(() => [class="w-full h-full flex items-center justify-center text-gray-400 dark:text-gray-600"><Icon- name="tabler:image"+ name="tabler:photo"size="20"/></div>