From 2ee2c70e9e50d9ffeb70ac571f91cad7c662d177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Catarino?= Date: Mon, 19 Sep 2022 21:13:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20do=20not=20translate=20params=20?= =?UTF-8?q?for=20dashdot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix for #444 * Revert "fix for #444" This reverts commit 3927198617401c05b826b1f7b10550a608e9c9dd. * use id instead of name for param --- src/modules/dashdot/DashdotModule.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/dashdot/DashdotModule.tsx b/src/modules/dashdot/DashdotModule.tsx index c3a91ee63..5ab7446f6 100644 --- a/src/modules/dashdot/DashdotModule.tsx +++ b/src/modules/dashdot/DashdotModule.tsx @@ -145,6 +145,7 @@ export function DashdotComponent() { const graphs = [ { + id: 'cpu', name: t('card.graphs.cpu.title'), enabled: cpuEnabled, params: { @@ -152,6 +153,7 @@ export function DashdotComponent() { }, }, { + id: 'storage', name: t('card.graphs.storage.title'), enabled: storageEnabled && !isCompact, params: { @@ -159,15 +161,18 @@ export function DashdotComponent() { }, }, { + id: 'ram', name: t('card.graphs.memory.title'), enabled: ramEnabled, }, { + id: 'network', name: t('card.graphs.network.title'), enabled: networkEnabled, spanTwo: true, }, { + id: 'gpu', name: t('card.graphs.gpu.title'), enabled: gpuEnabled, spanTwo: true, @@ -232,7 +237,7 @@ export function DashdotComponent() { className={classes.iframe} key={graph.name} title={graph.name} - src={`${dashdotUrl}?singleGraphMode=true&graph=${graph.name.toLowerCase()}&theme=${colorScheme}&surface=${(colorScheme === + src={`${dashdotUrl}?singleGraphMode=true&graph=${graph.id.toLowerCase()}&theme=${colorScheme}&surface=${(colorScheme === 'dark' ? theme.colors.dark[7] : theme.colors.gray[0]