mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Delaying reboot/shutdown with asyncio sleep to give API time to shut down.
This commit is contained in:
parent
5ffb8bee8d
commit
4cc00a9cb1
9 changed files with 71 additions and 49 deletions
|
|
@ -32,6 +32,14 @@ function handleEvents(events) {
|
|||
eventToast('Refresh completed', 'Files have been refreshed.');
|
||||
}
|
||||
|
||||
if (event === 'shutdown') {
|
||||
eventToast('Shutdown', message, 'warning');
|
||||
}
|
||||
|
||||
if (event === 'shutdown_failed') {
|
||||
eventToast('Shutdown Failed', message, 'error');
|
||||
}
|
||||
|
||||
if (event === 'downloads_disabled') {
|
||||
eventToast('Downloads Disabled', message, 'info');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue