🧼 Updates menu list

This commit is contained in:
Rune Harlyk
2025-03-01 23:09:45 +01:00
committed by Rune Harlyk
parent 113ac1bc2c
commit 31dd7f7ba4
3 changed files with 24 additions and 21 deletions
@@ -1,6 +1,4 @@
<script lang="ts">
import { run } from 'svelte/legacy';
import { focusTrap } from 'svelte-focus-trap';
import { fly } from 'svelte/transition';
import { telemetry } from '$lib/stores/telemetry';
@@ -17,13 +15,13 @@
let updating = $state(true);
let progress = $state(0);
run(() => {
$effect(() => {
if ($telemetry.download_ota.status == 'progress') {
progress = $telemetry.download_ota.progress;
}
});
run(() => {
$effect(() => {
if ($telemetry.download_ota.status == 'error') {
updating = false;
}
@@ -32,7 +30,7 @@
let message = $state('Preparing ...');
let timerId: number = $state();
run(() => {
$effect(() => {
if ($telemetry.download_ota.status == 'progress') {
message = 'Downloading ...';
} else if ($telemetry.download_ota.status == 'error') {