mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Add setting to hide widgets on failure
This commit is contained in:
@@ -14,7 +14,7 @@ export default function Component({ service }) {
|
||||
});
|
||||
|
||||
if (containersError) {
|
||||
return <Container error={containersError} />;
|
||||
return <Container service={service} error={containersError} />;
|
||||
}
|
||||
|
||||
if (!containersData) {
|
||||
@@ -28,7 +28,7 @@ export default function Component({ service }) {
|
||||
}
|
||||
|
||||
if (containersData.error) {
|
||||
return <Container error={t("widget.api_error")} />;
|
||||
return <Container service={service} error={t("widget.api_error")} />;
|
||||
}
|
||||
|
||||
const running = containersData.filter((c) => c.State === "running").length;
|
||||
|
||||
Reference in New Issue
Block a user