mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
feat(web): event handler component (#23763)
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user