From 1d0f89cd9ce1343c6fd674dfdf0986f61b186324 Mon Sep 17 00:00:00 2001 From: ajnart Date: Wed, 11 Jan 2023 08:44:48 +0900 Subject: [PATCH] set dashdot data to the new type --- src/widgets/dashDot/DashDotTile.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/widgets/dashDot/DashDotTile.tsx b/src/widgets/dashDot/DashDotTile.tsx index 91b06442e..89f83d353 100644 --- a/src/widgets/dashDot/DashDotTile.tsx +++ b/src/widgets/dashDot/DashDotTile.tsx @@ -28,7 +28,14 @@ const definition = defineWidget({ graphs: { type: 'multi-select', defaultValue: ['cpu', 'memory'], - data: ['cpu', 'memory', 'storage', 'network', 'gpu'], + data: [ + // ['cpu', 'memory', 'storage', 'network', 'gpu'], into { label, value } + { label: 'CPU', value: 'cpu' }, + { label: 'Memory', value: 'memory' }, + { label: 'Storage', value: 'storage' }, + { label: 'Network', value: 'network' }, + { label: 'GPU', value: 'gpu' }, + ], }, url: { type: 'text',