mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Store settings: Add branding options (#4131)
* Add logo upload * Add brand color definition * Cleanups * Add logo to store selector * Improve brand color handling * Update color input * Add logo dimensions hint * Fixes * Fix pattern and warning in js logs for color validation * Fix condition, add test Co-authored-by: nicolas.dorier <nicolas.dorier@gmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using BTCPayServer.Client.Models;
|
||||
using BTCPayServer.Validation;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
|
||||
namespace BTCPayServer.Models.StoreViewModels
|
||||
{
|
||||
@@ -21,6 +22,13 @@ namespace BTCPayServer.Models.StoreViewModels
|
||||
[MaxLength(500)]
|
||||
public string StoreWebsite { get; set; }
|
||||
|
||||
[Display(Name = "Logo")]
|
||||
public IFormFile LogoFile { get; set; }
|
||||
public string LogoFileId { get; set; }
|
||||
|
||||
[Display(Name = "Brand Color")]
|
||||
public string BrandColor { get; set; }
|
||||
|
||||
public bool CanDelete { get; set; }
|
||||
|
||||
[Display(Name = "Allow anyone to create invoice")]
|
||||
|
||||
Reference in New Issue
Block a user