From 8bef6b018323b9c754966f06c9875cc7763dcf65 Mon Sep 17 00:00:00 2001 From: myztillx Date: Tue, 19 Dec 2023 11:30:27 -0500 Subject: [PATCH] Fix formatting --- public/locales/en/common.json | 4 ++-- src/widgets/grafana/component.jsx | 5 +---- src/widgets/grafana/widget.js | 2 +- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 7bf2b434..d53e6279 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -756,7 +756,7 @@ "ping": "Ping" }, "urbackup": { - "ok": "Ok", + "ok" : "Ok", "errored": "Errors", "noRecent": "Out of Date", "totalUsed": "Used Storage" @@ -796,4 +796,4 @@ "noEventsToday": "No events for today!", "noEventsFound": "No events found" } -} \ No newline at end of file +} diff --git a/src/widgets/grafana/component.jsx b/src/widgets/grafana/component.jsx index a8ff5bfc..4bc71738 100755 --- a/src/widgets/grafana/component.jsx +++ b/src/widgets/grafana/component.jsx @@ -37,10 +37,7 @@ export default function Component({ service }) { label="grafana.alertstriggered" value={t("common.number", { value: alertsData.filter((a) => a.state === "alerting").length })} /> - + ); } diff --git a/src/widgets/grafana/widget.js b/src/widgets/grafana/widget.js index 36656ccd..2805555f 100755 --- a/src/widgets/grafana/widget.js +++ b/src/widgets/grafana/widget.js @@ -9,7 +9,7 @@ const widget = { endpoint: "alerts", }, alertmanager: { - endpoint: "alertmanager/grafana/api/v2/alerts" + endpoint: "alertmanager/grafana/api/v2/alerts", }, stats: { endpoint: "admin/stats",