summaryrefslogtreecommitdiff
path: root/src/albums.js
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-06-12 22:23:55 -0500
committerTim Keller <tjk@tjkeller.xyz>2025-06-12 22:23:55 -0500
commit81ce440269a29d70de5c806f03d064b0897cf7db (patch)
tree8dbb3128b427023037551d39bac97f72cc10da6a /src/albums.js
parent043317fc36bf39ab073941eae4611645637aaee9 (diff)
downloadimmich-frame-81ce440269a29d70de5c806f03d064b0897cf7db.tar.xz
immich-frame-81ce440269a29d70de5c806f03d064b0897cf7db.zip
integrate tailwind more and a few other minor features
Diffstat (limited to 'src/albums.js')
-rw-r--r--src/albums.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/albums.js b/src/albums.js
index 529a02e..f8b5ed1 100644
--- a/src/albums.js
+++ b/src/albums.js
@@ -9,6 +9,7 @@ export default async function initAlbums(albumsPageContainer) {
console.log(res.albumName, res.id, res.startDate, res.endDate, res.assetCount, res.shared)
const albumClone = albumTemplate.content.cloneNode(true)
albumClone.firstElementChild.dataset.key = res.id
+ albumClone.querySelector("a").href = apiConnector.albumSrc(res.id)
albumClone.querySelector("img").src = apiConnector.assetThumbnailSrc(res.albumThumbnailAssetId)
albumClone.querySelector(".album-name").textContent = res.albumName
albumClone.querySelector(".album-assets-count").textContent = res.assetCount.toLocaleString()