Skip to content

Commit 821c523

Browse files
committed
web: add toggle switches to enable automatic installation of updates
Signed-off-by: Leonard Göhrs <[email protected]>
1 parent 12c921b commit 821c523

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

web/src/Setup.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ export default function Setup() {
166166
<MqttToggle topic="/v1/tac/update/enable_polling">
167167
Periodically check for updates
168168
</MqttToggle>
169+
<MqttToggle topic="/v1/tac/update/enable_auto_install">
170+
Automatically install and boot updates
171+
</MqttToggle>
169172
</Box>
170173
</Container>
171174
),

web/src/TacComponents.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,12 @@ export function UpdateConfig() {
254254
Periodically check for updates
255255
</MqttToggle>
256256
</Box>
257+
<Box>
258+
<Box variant="awsui-key-label">Auto Install</Box>
259+
<MqttToggle topic="/v1/tac/update/enable_auto_install">
260+
Automatically install and boot updates
261+
</MqttToggle>
262+
</Box>
257263
</ColumnLayout>
258264
</Container>
259265
);

0 commit comments

Comments
 (0)