Show new WebUI filenames
All checks were successful
/ build (push) Successful in 4m30s
/ check-changes (push) Successful in 18s

This commit is contained in:
Djuri Baars 2024-12-26 23:59:20 +01:00
parent 65b6df5d92
commit 2ce53eb499

View file

@ -112,6 +112,25 @@
return binaryFilename;
};
const getWebUiBinaryName = () => {
let webuiFilename = '';
switch ($settings.hwRev) {
case 'REV_V8_EPD_2_13':
webuiFilename = 'littlefs_16MB.bin';
break;
case 'REV_B_EPD_2_13':
webuiFilename = 'littlefs_8MB.bin';
break;
case 'REV_A_EPD_2_13':
webuiFilename = 'littlefs_4MB.bin';
break;
default:
webuiFilename = 'Unsupported hardware, unable to determine WebUI binary filename';
}
return webuiFilename;
};
const onAutoUpdate = async (e: Event) => {
e.preventDefault();
@ -217,7 +236,7 @@
>
</div>
<div class="col flex-fill">
<label for="webuiFile" class="form-label">WebUI file (littlefs.bin)</label>
<label for="webuiFile" class="form-label">WebUI file ({getWebUiBinaryName()})</label>
<input
type="file"
id="webuiFile"