1
0
mirror of https://github.com/immich-app/immich.git synced 2025-06-15 03:30:33 +02:00

feat(web) Add search functionality to add photo to album modal (#1273)

This commit is contained in:
Krisjanis Lejejs
2023-01-09 22:24:07 +02:00
committed by GitHub
parent 10789503c1
commit e4e040f14b
4 changed files with 74 additions and 31 deletions

View File

@ -210,9 +210,11 @@
addToSharedAlbum = shared;
};
const handleAddToNewAlbum = () => {
const handleAddToNewAlbum = (event: CustomEvent) => {
isShowAlbumPicker = false;
api.albumApi.createAlbum({ albumName: 'Untitled', assetIds: [asset.id] }).then((response) => {
const { albumName }: { albumName: string } = event.detail;
api.albumApi.createAlbum({ albumName, assetIds: [asset.id] }).then((response) => {
const album = response.data;
goto('/albums/' + album.id);
});