Update hosts workflow and align DHCP metadata.

Redesign the Hosts page around source-aware grouped rows with shared table shell styling, fix effective-config save session synchronization, and move read-ethers into the DHCP model where dnsmasq actually applies it.
This commit is contained in:
2026-03-26 00:24:21 +10:00
parent 333566554c
commit c7e7844ce7
24 changed files with 1541 additions and 79 deletions
@@ -84,6 +84,13 @@
var result = await Session.ApplyAsync();
_saveResult = result;
if (result.Saved)
{
// Changes were written to disk, so clear them from session state.
// Whether to stay in edit mode depends on whether restart succeeded.
Session.AcceptAppliedChanges(stayInEditMode: result.IsValidateFailed || !result.Restarted);
}
if (result.Saved && result.Restarted)
{
var message = result.UserMessage ?? "Config saved and dnsmasq restarted.";
@@ -118,6 +125,12 @@
var result = await SaveService.RestoreAsync(backups);
_restoreResult = result;
if (result.Restored)
{
// Restore wrote to disk, so clear any pending changes from session.
Session.AcceptAppliedChanges(stayInEditMode: false);
}
if (result.Restored && result.Restarted)
{
var message = result.UserMessage ?? "Backup restored and dnsmasq restarted.";