Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for Quit Wizard button not working #9

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/ui/WizardBoxButtons.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -46,19 +46,19 @@
<div class="is-flex is-justify-content-center my-3">
{#if step > 0}
<button class="button is-white mr-4" on:click={goPrev}>
<iconify-icon class="is-size-5" icon="material-symbols:navigate-before"></iconify-icon>
<iconify-icon class="is-size-5" icon="material-symbols:navigate-before"></iconify-icon>
Previous &nbsp;
</button>
{/if}
{#if step < 4}
<button class="button is-white ml-4" on:click={goNext}>
&nbsp; Next
<iconify-icon class="is-size-5" icon="material-symbols:navigate-next"></iconify-icon>
<iconify-icon class="is-size-5" icon="material-symbols:navigate-next"></iconify-icon>
</button>
{/if}
{#if step == 4}
<button class="button is-white ml-4"on:click={quit}>
&nbsp; Quit Wizard &nbsp;
</button>
{/if}
</div>
</div>