File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import SpaceBetween from "@cloudscape-design/components/space-between";
30
30
import Spinner from "@cloudscape-design/components/spinner" ;
31
31
import Table from "@cloudscape-design/components/table" ;
32
32
33
- import { MqttButton } from "./MqttComponents" ;
33
+ import { MqttButton , MqttToggle } from "./MqttComponents" ;
34
34
import { useMqttSubscription } from "./mqtt" ;
35
35
36
36
type RootfsSlot = {
@@ -221,6 +221,30 @@ export function SlotStatus() {
221
221
}
222
222
}
223
223
224
+ export function UpdateConfig ( ) {
225
+ return (
226
+ < Container
227
+ header = {
228
+ < Header
229
+ variant = "h3"
230
+ description = "Decide how updates are handled on this TAC"
231
+ >
232
+ Update Configuration
233
+ </ Header >
234
+ }
235
+ >
236
+ < ColumnLayout columns = { 3 } variant = "text-grid" >
237
+ < Box >
238
+ < Box variant = "awsui-key-label" > Update Polling</ Box >
239
+ < MqttToggle topic = "/v1/tac/update/enable_polling" >
240
+ Periodically check for updates
241
+ </ MqttToggle >
242
+ </ Box >
243
+ </ ColumnLayout >
244
+ </ Container >
245
+ ) ;
246
+ }
247
+
224
248
export function UpdateChannels ( ) {
225
249
const channels_topic = useMqttSubscription < Array < Channel > > (
226
250
"/v1/tac/update/channels" ,
@@ -450,6 +474,7 @@ export function UpdateContainer() {
450
474
}
451
475
>
452
476
< SpaceBetween size = "m" >
477
+ < UpdateConfig />
453
478
< UpdateChannels />
454
479
< SlotStatus />
455
480
</ SpaceBetween >
You can’t perform that action at this time.
0 commit comments