From 63f952509ed6ee2e98c57ad75c095eee1ae03341 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 8 Sep 2023 08:59:04 -0700 Subject: [PATCH] Support disable glances cpu + mem (#1931) --- src/components/widgets/glances/glances.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/widgets/glances/glances.jsx b/src/components/widgets/glances/glances.jsx index 689a1e10a..092636aa2 100644 --- a/src/components/widgets/glances/glances.jsx +++ b/src/components/widgets/glances/glances.jsx @@ -33,8 +33,8 @@ export default function Widget({ options }) { if (!data) { return - - + { options.cpu !== false && } + { options.mem !== false && } { options.cputemp && } { options.disk && !Array.isArray(options.disk) && } { options.disk && Array.isArray(options.disk) && options.disk.map((disk) => ) } @@ -71,7 +71,7 @@ export default function Widget({ options }) { return ( - - } + {options.mem !== false && + />} {disks.map((disk) => (