mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 09:13:17 +03:00
merge: remote-tracking branch 'origin/main' into feat/database-restores
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
import { modalManager, setTranslations } from '@immich/ui';
|
||||
import { onMount, type Snippet } from 'svelte';
|
||||
import { t } from 'svelte-i18n';
|
||||
import { run } from 'svelte/legacy';
|
||||
import '../app.css';
|
||||
|
||||
interface Props {
|
||||
@@ -72,7 +71,7 @@
|
||||
|
||||
const { serverRestarting } = websocketStore;
|
||||
|
||||
run(() => {
|
||||
$effect.pre(() => {
|
||||
if ($user || $serverRestarting || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) {
|
||||
openWebsocketConnection();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user