From e786e114bac9cb6b03952351c1e4c3df3fb42e78 Mon Sep 17 00:00:00 2001 From: Jeremy Poulter Date: Tue, 12 Sep 2023 23:12:49 +0100 Subject: [PATCH] Fix for Quit Qizard button not working Fixes #690 serialQueue expects a function, so wrapped call to saveParam as with other calls. --- src/components/ui/WizardBoxButtons.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/ui/WizardBoxButtons.svelte b/src/components/ui/WizardBoxButtons.svelte index 2dcddafc..ce7dd35f 100644 --- a/src/components/ui/WizardBoxButtons.svelte +++ b/src/components/ui/WizardBoxButtons.svelte @@ -23,21 +23,21 @@ async function quit() { $uistates_store.wizard_step = 0 if (!$config_store.wizard_passed) - await serialQueue.add(config_store.saveParam("wizard_passed", true)) + await serialQueue.add(() => config_store.saveParam("wizard_passed", true)) if ($status_store.ipaddress == "192.168.4.1") { $uistates_store.alertbox.title = $_("notification") $uistates_store.alertbox.component = AlertBody $uistates_store.alertbox.visible = true $uistates_store.alertbox.button = true $uistates_store.alertbox.closable = false - $uistates_store.alertbox.action = () => { + $uistates_store.alertbox.action = () => { uistates_store.resetAlertBox() setTimeout(() => { reload2ip() }, 6000); } } - else + else window.location.href = "http://" + $status_store.ipaddress } @@ -46,14 +46,14 @@
{#if step > 0} {/if} {#if step < 4} {/if} {#if step == 4} @@ -61,4 +61,4 @@   Quit Wizard   {/if} -
\ No newline at end of file +