fix(web): refresh recent albums sidebar after album changes (#26757)

This commit is contained in:
Michel Heusschen
2026-03-09 17:11:32 +01:00
committed by GitHub
parent df0c86920d
commit a47b232235
10 changed files with 37 additions and 21 deletions
+2
View File
@@ -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);