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