mirror of
https://github.com/immich-app/immich.git
synced 2025-07-08 10:44:15 -04:00
Merge branch 'main' of github.com:immich-app/immich
This commit is contained in:
commit
1f25df308a
@ -10,6 +10,7 @@
|
|||||||
let isServerOk = true;
|
let isServerOk = true;
|
||||||
let serverVersion = '';
|
let serverVersion = '';
|
||||||
let serverInfo: ServerInfoResponseDto;
|
let serverInfo: ServerInfoResponseDto;
|
||||||
|
let pingServerInterval: NodeJS.Timer;
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
try {
|
try {
|
||||||
@ -24,9 +25,8 @@
|
|||||||
console.log('Error [StatusBox] [onMount]');
|
console.log('Error [StatusBox] [onMount]');
|
||||||
isServerOk = false;
|
isServerOk = false;
|
||||||
}
|
}
|
||||||
});
|
|
||||||
|
|
||||||
const pingServerInterval = setInterval(async () => {
|
pingServerInterval = setInterval(async () => {
|
||||||
try {
|
try {
|
||||||
const { data: pingReponse } = await api.serverInfoApi.pingServer();
|
const { data: pingReponse } = await api.serverInfoApi.pingServer();
|
||||||
|
|
||||||
@ -40,6 +40,7 @@
|
|||||||
isServerOk = false;
|
isServerOk = false;
|
||||||
}
|
}
|
||||||
}, 10000);
|
}, 10000);
|
||||||
|
});
|
||||||
|
|
||||||
onDestroy(() => clearInterval(pingServerInterval));
|
onDestroy(() => clearInterval(pingServerInterval));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user