feat: Add warning when there is a mismatch between WebUI and firmware
This commit is contained in:
parent
22c5bb2bee
commit
f5a9133cab
5 changed files with 15 additions and 5 deletions
|
@ -89,7 +89,8 @@
|
||||||
"hostname": "Hostname",
|
"hostname": "Hostname",
|
||||||
"frontlight": "Displaybeleuchtung",
|
"frontlight": "Displaybeleuchtung",
|
||||||
"turnOn": "Einschalten",
|
"turnOn": "Einschalten",
|
||||||
"flashFrontlight": "Blinken"
|
"flashFrontlight": "Blinken",
|
||||||
|
"fwCommitMismatch": "Die Firmware -Version unterscheidet sich von der WebUI -Version, dies kann zu Problemen führen."
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"title": "Status",
|
"title": "Status",
|
||||||
|
|
|
@ -108,7 +108,8 @@
|
||||||
"turnOn": "Turn on",
|
"turnOn": "Turn on",
|
||||||
"flashFrontlight": "Flash",
|
"flashFrontlight": "Flash",
|
||||||
"firmwareUpdate": "Firmware update",
|
"firmwareUpdate": "Firmware update",
|
||||||
"fwCommit": "Firmware commit"
|
"fwCommit": "Firmware commit",
|
||||||
|
"fwCommitMismatch": "The firmware version is different from the WebUI version, this might cause problems. "
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"title": "Status",
|
"title": "Status",
|
||||||
|
|
|
@ -88,7 +88,8 @@
|
||||||
"hostname": "Nombre del host",
|
"hostname": "Nombre del host",
|
||||||
"turnOn": "Encender",
|
"turnOn": "Encender",
|
||||||
"frontlight": "Luz de la pantalla",
|
"frontlight": "Luz de la pantalla",
|
||||||
"flashFrontlight": "Luz intermitente"
|
"flashFrontlight": "Luz intermitente",
|
||||||
|
"fwCommitMismatch": "La versión de firmware es diferente de la versión WebUI, esto podría causar problemas."
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"memoryFree": "Memoria RAM libre",
|
"memoryFree": "Memoria RAM libre",
|
||||||
|
|
|
@ -79,7 +79,8 @@
|
||||||
"title": "Besturing",
|
"title": "Besturing",
|
||||||
"frontlight": "Displaylicht",
|
"frontlight": "Displaylicht",
|
||||||
"turnOn": "Aanzetten",
|
"turnOn": "Aanzetten",
|
||||||
"flashFrontlight": "Knipper"
|
"flashFrontlight": "Knipper",
|
||||||
|
"fwCommitMismatch": "De firmwareversie verschilt van de WebUI -versie, dit kan problemen veroorzaken."
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"title": "Status",
|
"title": "Status",
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
Form,
|
Form,
|
||||||
Input,
|
Input,
|
||||||
Label,
|
Label,
|
||||||
Row
|
Row,
|
||||||
|
Alert
|
||||||
} from '@sveltestrap/sveltestrap';
|
} from '@sveltestrap/sveltestrap';
|
||||||
import FirmwareUpdater from './FirmwareUpdater.svelte';
|
import FirmwareUpdater from './FirmwareUpdater.svelte';
|
||||||
import { uiSettings } from '$lib/uiSettings';
|
import { uiSettings } from '$lib/uiSettings';
|
||||||
|
@ -226,6 +227,11 @@
|
||||||
<li>WebUI commit: <Placeholder value={$settings.fsRev} /></li>
|
<li>WebUI commit: <Placeholder value={$settings.fsRev} /></li>
|
||||||
<li>{$_('section.control.hostname')}: <Placeholder value={$settings.hostname} /></li>
|
<li>{$_('section.control.hostname')}: <Placeholder value={$settings.hostname} /></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
{#if $settings.gitRev != $settings.fsRev}
|
||||||
|
<Alert color="warning">
|
||||||
|
⚠️ <strong>{$_('warning')}</strong>: {$_('section.control.fwCommitMismatch')}
|
||||||
|
</Alert>
|
||||||
|
{/if}
|
||||||
<Row>
|
<Row>
|
||||||
<Col class="d-flex justify-content-end">
|
<Col class="d-flex justify-content-end">
|
||||||
<Button color="danger" id="restartBtn" on:click={restartClock}
|
<Button color="danger" id="restartBtn" on:click={restartClock}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue