Merge pull request #4860 from sbwalker/dev

fix #4760 - display update confirmation message in Site Settings
This commit is contained in:
Shaun Walker 2024-11-22 16:34:46 -05:00 committed by GitHub
commit 601caab3b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -481,6 +481,11 @@
{ {
try try
{ {
if (PageState.QueryString.ContainsKey("updated"))
{
AddModuleMessage(Localizer["Success.Settings.SaveSite"], MessageType.Success);
}
Site site = await SiteService.GetSiteAsync(PageState.Site.SiteId); Site site = await SiteService.GetSiteAsync(PageState.Site.SiteId);
if (site != null) if (site != null)
{ {
@ -736,7 +741,7 @@
await logger.LogInformation("Site Settings Saved {Site}", site); await logger.LogInformation("Site Settings Saved {Site}", site);
NavigationManager.NavigateTo(NavigateUrl(), true); // reload NavigationManager.NavigateTo(NavigateUrl(PageState.Page.Path, "updated=true"), true); // reload
} }
} }
else else