mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Branding updates for 2.0 (#5947)
* Remove deprecated CSS options Closes #5945. * Greenfield: Add brandColor to store APIs Closes #5946. * Migrate file IDs to URLs Closes #5953. * Greenfield: Add CSS and logo URL to store settings API Closes #5945. * Add migration test * Store and Server branding can reference file's via fileid:ID * Add PaymentSoundUrl to Store API --------- Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
This commit is contained in:
@@ -21,20 +21,15 @@ public class BrandingViewModel
|
||||
[Display(Name = "Custom Theme Extension Type")]
|
||||
public ThemeExtension CustomThemeExtension { get; set; }
|
||||
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||
[MaxLength(500)]
|
||||
[Display(Name = "Custom Theme CSS URL")]
|
||||
public string CustomThemeCssUri { get; set; }
|
||||
|
||||
[Display(Name = "Custom Theme File")]
|
||||
[JsonIgnore]
|
||||
public IFormFile CustomThemeFile { get; set; }
|
||||
|
||||
public string CustomThemeFileId { get; set; }
|
||||
public string CustomThemeCssUrl { get; set; }
|
||||
|
||||
[Display(Name = "Logo")]
|
||||
[JsonIgnore]
|
||||
public IFormFile LogoFile { get; set; }
|
||||
|
||||
public string LogoFileId { get; set; }
|
||||
public string LogoUrl { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user