diff options
| author | Tim Keller <tjkeller.xyz> | 2025-05-11 13:35:06 -0500 |
|---|---|---|
| committer | Tim Keller <tjkeller.xyz> | 2025-05-11 13:35:06 -0500 |
| commit | 51be71d8943f6e5e0c4b28358f227860c73d53a7 (patch) | |
| tree | 4514bc1592e0d42e8a1a23bb25c4b9d1ca7c69ed /src/albums.js | |
| parent | f86d11c3ce1f04ee89da235d78447aed6d6d7130 (diff) | |
| download | immich-frame-51be71d8943f6e5e0c4b28358f227860c73d53a7.tar.xz immich-frame-51be71d8943f6e5e0c4b28358f227860c73d53a7.zip | |
work
Diffstat (limited to 'src/albums.js')
| -rw-r--r-- | src/albums.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/albums.js b/src/albums.js index 5628e6d..e10dd54 100644 --- a/src/albums.js +++ b/src/albums.js @@ -1,4 +1,4 @@ -import immichConnector from "./immich.js" +import apiConnector from "./connector.js" export default async function initAlbums(albumsPageContainer) { // TODO empty cells animation @@ -8,7 +8,7 @@ export default async function initAlbums(albumsPageContainer) { async function createAlbum(res) { console.log(res.albumName, res.id, res.startDate, res.endDate, res.assetCount, res.shared) const albumClone = albumTemplate.content.cloneNode(true) - albumClone.querySelector(".album-thumb").src = await immichConnector.fetchImageSrc(res.albumThumbnailAssetId) + albumClone.querySelector(".album-thumb").src = apiConnector.albumThumbSrc(res.albumThumbnailAssetId) albumClone.querySelector(".album-name").textContent = res.albumName albumClone.querySelector(".album-assets-count").textContent = res.assetCount.toLocaleString() if (!res.shared) @@ -17,7 +17,7 @@ export default async function initAlbums(albumsPageContainer) { albumsContainer.appendChild(albumClone) } - const albumsResponse = await immichConnector.fetchAlbums() + const albumsResponse = await apiConnector.fetchAlbums() for (const res of albumsResponse) createAlbum(res) |
