Skip to content

Commit 63e0765

Browse files
fcorneliusshamoon
andauthored
Apply suggestions from code review
Co-authored-by: shamoon <[email protected]>
1 parent d08383d commit 63e0765

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

public/locales/en/common.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@
992992
"argocd": {
993993
"apps": "Apps",
994994
"synced": "Synced",
995-
"outOfSync": "OutOfSync",
995+
"outOfSync": "Out Of Sync",
996996
"healthy": "Healthy",
997997
"degraded": "Degraded",
998998
"progressing": "Progressing",

src/widgets/argocd/component.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ export default function Component({ service }) {
2020
if (status === "apps") {
2121
return { status, count: appsData?.items?.length };
2222
}
23-
const apiStatus = status.charAt(0).toUpperCase() + status.slice(1);
2423
const count = appsData?.items?.filter(
25-
(item) => item.status?.sync?.status === apiStatus || item.status?.health?.status === apiStatus,
24+
(item) => item.status?.sync?.status.toLowerCase() === status.toLowerCase() || item.status?.health?.status.toLowerCase() === status.toLowerCase(),
2625
).length;
2726
return { status, count };
2827
});

0 commit comments

Comments
 (0)