feat(web): event handler component (#23763)

This commit is contained in:
Daniel Dietzler
2025-11-10 17:49:46 +01:00
committed by GitHub
parent 493cde9d55
commit dd393c8346
14 changed files with 58 additions and 23 deletions
+1 -1
View File
@@ -58,7 +58,7 @@
// if the browser theme changes, changes the Immich theme too
});
eventManager.emit('app.init');
eventManager.emit('AppInit');
beforeNavigate(({ from, to }) => {
if (isAssetViewerRoute(from) && isAssetViewerRoute(to)) {
+1 -1
View File
@@ -27,7 +27,7 @@
const onSuccess = async (user: LoginResponseDto) => {
await goto(data.continueUrl, { invalidateAll: true });
eventManager.emit('auth.login', user);
eventManager.emit('AuthLogin', user);
};
const onFirstLogin = () => goto(AppRoute.AUTH_CHANGE_PASSWORD);