mirror of
https://github.com/alexhopeoconnor/dnsmasq-webui.git
synced 2026-10-22 13:57:50 +10:00
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:
@@ -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.";
|
||||
|
||||
Reference in New Issue
Block a user