@@ -148,7 +148,8 @@ fn Group(
148148 let mac = move || unit. get ( ) . mac . to_string ( ) ;
149149 let url_flash = move || format ! ( "admin/action/{}/flash" , mac( ) ) ;
150150 let url_store = move || format ! ( "admin/action/{}/store" , mac( ) ) ;
151- let url_boot = move || format ! ( "admin/action/{}/reboot" , mac( ) ) ;
151+ let url_boot = move || format ! ( "admin/action/{}/boot" , mac( ) ) ;
152+ let url_restart = move || format ! ( "admin/action/{}/restart" , mac( ) ) ;
152153 let url_cancel = move || format ! ( "admin/action/{}/wait" , mac( ) ) ;
153154 let url_register = move || format ! ( "admin/action/{}/register" , mac( ) ) ;
154155 let url_shutdown = move || format ! ( "admin/action/{}/shutdown" , mac( ) ) ;
@@ -206,7 +207,10 @@ fn Group(
206207 "store"
207208 </Button >
208209 <Button color=ButtonColor :: Success on_click=move |_| send_req( url_boot( ) ) >
209- "reboot"
210+ "boot"
211+ </Button >
212+ <Button color=ButtonColor :: Success on_click=move |_| send_req( url_restart( ) ) >
213+ "restart"
210214 </Button >
211215 <Button color=ButtonColor :: Primary on_click=move |_| send_req( url_cancel( ) ) >
212216 "wait"
@@ -237,7 +241,8 @@ fn Group(
237241 } ;
238242
239243 let url_flash = move || format ! ( "admin/action/{}/flash" , group_name. get( ) ) ;
240- let url_boot = move || format ! ( "admin/action/{}/reboot" , group_name. get( ) ) ;
244+ let url_boot = move || format ! ( "admin/action/{}/boot" , group_name. get( ) ) ;
245+ let url_restart = move || format ! ( "admin/action/{}/restart" , group_name. get( ) ) ;
241246 let url_cancel = move || format ! ( "admin/action/{}/wait" , group_name. get( ) ) ;
242247
243248 let image_button = move |image : String | {
@@ -260,6 +265,9 @@ fn Group(
260265 <Button color=ButtonColor :: Success on_click=move |_| send_req( url_boot( ) ) >
261266 "Set all machines to boot into the OS"
262267 </Button >
268+ <Button color=ButtonColor :: Success on_click=move |_| send_req( url_restart( ) ) >
269+ "Restart all machines"
270+ </Button >
263271 <Button color=ButtonColor :: Primary on_click=move |_| send_req( url_cancel( ) ) >
264272 "Set all machines to wait for next command"
265273 </Button >
0 commit comments