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:
@@ -1,4 +1,5 @@
|
||||
import { goto } from '$app/navigation';
|
||||
import { eventManager } from '$lib/managers/event-manager.svelte';
|
||||
import { Route } from '$lib/route';
|
||||
import {
|
||||
AlbumFilter,
|
||||
@@ -29,6 +30,7 @@ export const createAlbum = async (name?: string, assetIds?: string[]) => {
|
||||
assetIds,
|
||||
},
|
||||
});
|
||||
eventManager.emit('AlbumCreate', newAlbum);
|
||||
return newAlbum;
|
||||
} catch (error) {
|
||||
const $t = get(t);
|
||||
|
||||
Reference in New Issue
Block a user