Fixes for portainer and kubernetes widget error messages, and error messages for services behind the reverse proxy

Signed-off-by: Denis Papec <denis.papec@gmail.com>
This commit is contained in:
Denis Papec 2023-06-07 00:53:10 +01:00
parent 774ca4b3b2
commit 91e0ec2f83
No known key found for this signature in database
GPG key ID: DE0912C69A47222C
3 changed files with 8 additions and 9 deletions

View file

@ -16,7 +16,7 @@ export default function Component({ service }) {
`/api/kubernetes/stats/${widget.namespace}/${widget.app}?${podSelectorString}`);
if (statsError || statusError) {
return <Container service={service} error={t("widget.api_error")} />;
return <Container service={service} error={statsError ?? statusError} />;
}
if (statusData && statusData.status !== "running") {