diff --git a/docs/widgets/services/romm.md b/docs/widgets/services/romm.md index 73f9c01ae..6d8bc8b30 100644 --- a/docs/widgets/services/romm.md +++ b/docs/widgets/services/romm.md @@ -3,7 +3,7 @@ title: Romm description: Romm Widget Configuration --- -Allowed fields: `["platforms", "totalRoms", "totalSaves", "totalStates", "totalScreenshots", "totalFilesize"]`. +Allowed fields: `["platforms", "roms", "saves", "states", "screenshots", "totalfilesize"]`. ```yaml widget: @@ -11,5 +11,5 @@ widget: url: http://romm.host.or.ip username: username # optional password: password # optional - fields: ["platforms", "totalRoms", "totalSaves", "totalScreenshots"] + fields: ["platforms", "roms", "saves", "screenshots"] ``` diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 1ac41f901..195053b8d 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -831,7 +831,11 @@ }, "romm": { "platforms": "Platforms", - "totalRoms": "Total ROMs" + "roms": "Games", + "saves": "Saves", + "states": "States", + "screenshots": "Screenshots", + "totalfilesize": "Total Size" }, "netdata": { "warnings": "Warnings", diff --git a/src/widgets/romm/component.jsx b/src/widgets/romm/component.jsx index 5b36922ea..94be30d1d 100644 --- a/src/widgets/romm/component.jsx +++ b/src/widgets/romm/component.jsx @@ -18,8 +18,17 @@ export default function Component({ service }) { ); } - if (responseError) { - return ; + if (!response) { + return ( + + + + + + + + + ); } if (response) { @@ -28,11 +37,11 @@ export default function Component({ service }) { return ( - - - - - + + + + + ); }