mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 09:13:17 +03:00
feat: web impl.
This commit is contained in:
@@ -72,16 +72,17 @@
|
||||
afterNavigate(() => {
|
||||
showNavigationLoadingBar = false;
|
||||
});
|
||||
|
||||
const { release, serverRestarting } = websocketStore;
|
||||
|
||||
run(() => {
|
||||
if ($user || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) {
|
||||
if ($user || $serverRestarting || page.url.pathname.startsWith(AppRoute.MAINTENANCE)) {
|
||||
openWebsocketConnection();
|
||||
} else {
|
||||
closeWebsocketConnection();
|
||||
}
|
||||
});
|
||||
|
||||
const { release, serverRestarting } = websocketStore;
|
||||
|
||||
const handleRelease = async (release?: ReleaseEvent) => {
|
||||
if (!release?.isAvailable || !$user.isAdmin) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user