Auto enable price fetch when region is changed (#1009)

This commit is contained in:
Gunnar Skjold 2025-09-25 10:47:22 +02:00 committed by GitHub
parent d3cc92949a
commit 19f78126d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -225,6 +225,10 @@
}
}
async function enablePriceFetch() {
configuration.p.e = true;
}
let gpioMax = 44;
$: {
gpioMax = sysinfo.chip == 'esp8266' ? 16 : sysinfo.chip == 'esp32s2' ? 44 : 39;
@ -272,7 +276,7 @@
<div class="flex">
<div class="w-full">
{translations.conf?.price?.region ?? "Price region"}<br/>
<select name="pr" bind:value={configuration.p.r} class="in-f w-full">
<select name="pr" bind:value={configuration.p.r} on:change={enablePriceFetch} class="in-f w-full">
<optgroup label="Norway">
{#if !configuration.p.t}
<option value="NO1S">NO1 with support</option>