fix: do not fetch app state in case of missconfiguration
This commit is contained in:
parent
7fc43ef2bb
commit
6a59b8d27c
@ -143,10 +143,18 @@
|
|||||||
clearInterval(statusInterval);
|
clearInterval(statusInterval);
|
||||||
});
|
});
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
|
if (!application.gitSourceId || !application.destinationDockerId || !application.fqdn) {
|
||||||
|
$status.application.initialLoading = false;
|
||||||
|
$status.application.isRunning = false;
|
||||||
|
$status.application.isExited = false;
|
||||||
|
$status.application.loading = false;
|
||||||
|
return;
|
||||||
|
} else {
|
||||||
await getStatus();
|
await getStatus();
|
||||||
statusInterval = setInterval(async () => {
|
statusInterval = setInterval(async () => {
|
||||||
await getStatus();
|
await getStatus();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user