Merge pull request #994 from benphelps/fix-970

Fix: improve swarm status for replicated services & prefer stats for local containers
This commit is contained in:
shamoon 2023-02-14 10:41:49 -08:00 committed by GitHub
commit a25606cfe9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 27 deletions

View file

@ -22,7 +22,7 @@ export default function Component({ service }) {
return <Container error={finalError} />;
}
if (statusData && statusData.status !== "running") {
if (statusData && !(statusData.status.includes("running") || statusData.status.includes("partial"))) {
return (
<Container>
<Block label={t("widget.status")} value={t("docker.offline")} />