feat(control): put displays in loading state when shutting down

This commit is contained in:
2026-01-06 19:20:29 +01:00
parent 427209e518
commit 58570552eb
@@ -79,11 +79,10 @@
async function shutdown_action() {
popup_content.open = false;
await run_on_all_selected_displays((d) => shutdown(d.ip), false); // no await here because we want to be fast
// await run_on_all_selected_displays((d) => {
// shutdown(d.ip); // no await here because we want to be fast
// db.displays.update(d.id, { status: 'app_offline' });
// }, false);
await run_on_all_selected_displays((d) => {
shutdown(d.ip); // no await here because we want to be fast
db.displays.update(d.id, { status: 'app_offline' });
}, false);
}
</script>