🧼 Migrates svelte-modals to 2.0

This commit is contained in:
Rune Harlyk
2025-03-01 23:21:22 +01:00
committed by Rune Harlyk
parent 31dd7f7ba4
commit d90dbbcf21
9 changed files with 54 additions and 57 deletions
@@ -28,7 +28,6 @@
});
let message = $state('Preparing ...');
let timerId: number = $state();
$effect(() => {
if ($telemetry.download_ota.status == 'progress') {
@@ -39,7 +38,7 @@
message = 'Restarting ...';
progress = 0;
// Reload page after 5 sec
timerId = setTimeout(() => {
setTimeout(() => {
modals.closeAll();
location.reload();
}, 5000);
@@ -90,7 +89,7 @@
class="btn btn-warning text-warning-content inline-flex flex-none items-center"
disabled={updating}
onclick={() => {
closeAllModals();
modals.closeAll();
location.reload();
}}
>