mirror of
https://github.com/samsonjs/immich.git
synced 2026-04-27 15:07:45 +00:00
Merge branch 'main' of github.com:immich-app/immich
This commit is contained in:
commit
1f25df308a
1 changed files with 16 additions and 15 deletions
|
|
@ -10,6 +10,7 @@
|
|||
let isServerOk = true;
|
||||
let serverVersion = '';
|
||||
let serverInfo: ServerInfoResponseDto;
|
||||
let pingServerInterval: NodeJS.Timer;
|
||||
|
||||
onMount(async () => {
|
||||
try {
|
||||
|
|
@ -24,9 +25,8 @@
|
|||
console.log('Error [StatusBox] [onMount]');
|
||||
isServerOk = false;
|
||||
}
|
||||
});
|
||||
|
||||
const pingServerInterval = setInterval(async () => {
|
||||
pingServerInterval = setInterval(async () => {
|
||||
try {
|
||||
const { data: pingReponse } = await api.serverInfoApi.pingServer();
|
||||
|
||||
|
|
@ -40,6 +40,7 @@
|
|||
isServerOk = false;
|
||||
}
|
||||
}, 10000);
|
||||
});
|
||||
|
||||
onDestroy(() => clearInterval(pingServerInterval));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue