mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
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:
@@ -1079,6 +1079,11 @@ namespace BTCPayServer.Controllers
|
|||||||
{
|
{
|
||||||
ModelState.AddModelError(nameof(settings.CustomThemeCssUri), "Please provide a non-empty theme URI");
|
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)
|
if (settings.CustomThemeExtension != model.CustomThemeExtension)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user