diff --git a/web/src/lib/components/error.svelte b/web/src/lib/components/layouts/ErrorLayout.svelte
similarity index 100%
rename from web/src/lib/components/error.svelte
rename to web/src/lib/components/layouts/ErrorLayout.svelte
diff --git a/web/src/routes/+error.svelte b/web/src/routes/+error.svelte
index 95f28e1539..9da0d52ff0 100644
--- a/web/src/routes/+error.svelte
+++ b/web/src/routes/+error.svelte
@@ -1,6 +1,6 @@
-
+
diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte
index 2706ead46e..f3b3930e12 100644
--- a/web/src/routes/+layout.svelte
+++ b/web/src/routes/+layout.svelte
@@ -3,7 +3,7 @@
import { page } from '$app/state';
import { shortcut } from '$lib/actions/shortcut';
import DownloadPanel from '$lib/components/asset-viewer/download-panel.svelte';
- import Error from '$lib/components/error.svelte';
+ import ErrorLayout from '$lib/components/layouts/ErrorLayout.svelte';
import AppleHeader from '$lib/components/shared-components/apple-header.svelte';
import DialogWrapper from '$lib/components/shared-components/dialog/dialog-wrapper.svelte';
import NavigationLoadingBar from '$lib/components/shared-components/navigation-loading-bar.svelte';
@@ -17,11 +17,11 @@
import { closeWebsocketConnection, openWebsocketConnection } from '$lib/stores/websocket';
import { copyToClipboard, setKey } from '$lib/utils';
import { isAssetViewerRoute, isSharedLinkRoute } from '$lib/utils/navigation';
- import { onDestroy, onMount, type Snippet } from 'svelte';
- import { run } from 'svelte/legacy';
import { setTranslations } from '@immich/ui';
- import '../app.css';
+ import { onDestroy, onMount, type Snippet } from 'svelte';
import { t } from 'svelte-i18n';
+ import { run } from 'svelte/legacy';
+ import '../app.css';
interface Props {
children?: Snippet;
@@ -141,7 +141,7 @@
/>
{#if page.data.error}
-
+
{:else}
{@render children?.()}
{/if}
diff --git a/web/src/routes/auth/change-password/+page.svelte b/web/src/routes/auth/change-password/+page.svelte
index 75e9f9927c..33d354552e 100644
--- a/web/src/routes/auth/change-password/+page.svelte
+++ b/web/src/routes/auth/change-password/+page.svelte
@@ -19,14 +19,12 @@
const valid = $derived(password === passwordConfirm && passwordConfirm.length > 0);
const errorMessage = $derived(passwordConfirm.length === 0 || valid ? '' : $t('password_does_not_match'));
- const onSubmit = async (event: Event) => {
- event.preventDefault();
-
+ const onSubmit = async () => {
if (!valid) {
return;
}
- await updateMyUser({ userUpdateMeDto: { password: String(password) } });
+ await updateMyUser({ userUpdateMeDto: { password } });
await goto(AppRoute.AUTH_LOGIN);
resetSavedUser();
await logout();
@@ -34,7 +32,7 @@
-