mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-12 00:02:53 +00:00
Auto enable price fetch when region is changed (#1009)
This commit is contained in:
parent
d3cc92949a
commit
19f78126d6
12
lib/SvelteUi/app/dist/index.js
vendored
12
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user