mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Store Branding: Refactoring and logo as favicon (#5519)
* Store Branding: Refactoring and logo as favicon - Encapsulates store branding properties into their own view model - Uses the logo as favicon on public pages * Refactorings * Updates
This commit is contained in:
@@ -118,8 +118,6 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
||||
EmbeddedCSS = blob.EmbeddedCSS;
|
||||
CustomCSSLink = blob.CustomCSSLink;
|
||||
AllowCustomPaymentAmounts = blob.AllowCustomPaymentAmounts;
|
||||
if (!string.IsNullOrEmpty(EmbeddedCSS))
|
||||
EmbeddedCSS = $"<style>{EmbeddedCSS}</style>";
|
||||
switch (data.Status)
|
||||
{
|
||||
case Client.Models.PaymentRequestData.PaymentRequestStatus.Pending:
|
||||
@@ -139,7 +137,7 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
|
||||
public StoreBrandingViewModel StoreBranding { get; set; }
|
||||
public bool AllowCustomPaymentAmounts { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Status { get; set; }
|
||||
@@ -154,9 +152,6 @@ namespace BTCPayServer.Models.PaymentRequestViewModels
|
||||
public DateTime? ExpiryDate { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string LogoFileId { get; set; }
|
||||
public string CssFileId { get; set; }
|
||||
public string BrandColor { get; set; }
|
||||
public string StoreName { get; set; }
|
||||
public string StoreWebsite { get; set; }
|
||||
public string EmbeddedCSS { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user