Skip to content

Commit 382ce79

Browse files
committed
web: DashboardTac: also show hardware generation
Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 0c2f39f commit 382ce79

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

web/src/DashboardTac.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,24 @@ export default function DashboardTac() {
137137
}}
138138
/>
139139
</Box>
140+
<Box>
141+
<Box variant="awsui-key-label">Hardware Generation</Box>
142+
<MqttBox
143+
topic="/v1/tac/info/hardware_generation"
144+
format={(msg: string) => {
145+
switch (msg) {
146+
case "Gen1":
147+
return "Generation 1";
148+
case "Gen2":
149+
return "Generation 2";
150+
case "Gen3":
151+
return "Generation 3";
152+
default:
153+
return msg;
154+
}
155+
}}
156+
/>
157+
</Box>
140158
</ColumnLayout>
141159

142160
<Form

0 commit comments

Comments
 (0)