Server Theme: Allow to unset CustomThemeCssUri

It is necessary to have a way to unset the deprecated variable, to get access to the new way of uploading a theme file.
This commit is contained in:
Dennis Reimann
2023-02-04 17:24:19 +01:00
parent 26248774c2
commit 94f2cd4257

View File

@@ -1079,6 +1079,11 @@ namespace BTCPayServer.Controllers
{
ModelState.AddModelError(nameof(settings.CustomThemeCssUri), "Please provide a non-empty theme URI");
}
else if (settings.CustomThemeCssUri != model.CustomThemeCssUri)
{
settings.CustomThemeCssUri = model.CustomThemeCssUri;
settingsChanged = true;
}
if (settings.CustomThemeExtension != model.CustomThemeExtension)
{