mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
fix(web): refresh recent albums sidebar after album changes (#26757)
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
AlbumModalRowType,
|
||||
isSelectableRowType,
|
||||
} from '$lib/components/shared-components/album-selection/album-selection-utils';
|
||||
import { eventManager } from '$lib/managers/event-manager.svelte';
|
||||
import { albumViewSettings } from '$lib/stores/preferences.store';
|
||||
import { createAlbum, getAllAlbums, type AlbumResponseDto } from '@immich/sdk';
|
||||
import { Button, Icon, Modal, ModalBody, ModalFooter, Text } from '@immich/ui';
|
||||
@@ -43,6 +44,7 @@
|
||||
|
||||
const onNewAlbum = async (name: string) => {
|
||||
const album = await createAlbum({ createAlbumDto: { albumName: name } });
|
||||
eventManager.emit('AlbumCreate', album);
|
||||
onClose([album]);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user