feat: Add warning when there is a mismatch between WebUI and firmware
Some checks failed
/ check-changes (push) Successful in 8s
/ build (push) Failing after 3m45s

This commit is contained in:
Djuri 2025-06-12 16:18:24 +02:00
parent 22c5bb2bee
commit f5a9133cab
Signed by: djuri
GPG key ID: 61B9B2DDE5AA3AC1
5 changed files with 15 additions and 5 deletions

View file

@ -13,7 +13,8 @@
Form,
Input,
Label,
Row
Row,
Alert
} from '@sveltestrap/sveltestrap';
import FirmwareUpdater from './FirmwareUpdater.svelte';
import { uiSettings } from '$lib/uiSettings';
@ -226,6 +227,11 @@
<li>WebUI commit: <Placeholder value={$settings.fsRev} /></li>
<li>{$_('section.control.hostname')}: <Placeholder value={$settings.hostname} /></li>
</ul>
{#if $settings.gitRev != $settings.fsRev}
<Alert color="warning">
⚠️ <strong>{$_('warning')}</strong>: {$_('section.control.fwCommitMismatch')}
</Alert>
{/if}
<Row>
<Col class="d-flex justify-content-end">
<Button color="danger" id="restartBtn" on:click={restartClock}