Implement store templates (#6704)

* Implement store templates

* Use the template for the default rate rules

* Polish messages

* Do not show exchange selection if template has a script
This commit is contained in:
Nicolas Dorier
2025-05-09 15:58:24 +09:00
committed by GitHub
parent 0fbff219d2
commit 1e79730c6e
18 changed files with 421 additions and 124 deletions

View File

@@ -6,7 +6,7 @@ namespace BTCPayServer.Models.StoreViewModels
public class CreateStoreViewModel
{
public bool IsFirstStore { get; set; }
[Required]
[MaxLength(50)]
[MinLength(1)]
@@ -22,5 +22,6 @@ namespace BTCPayServer.Models.StoreViewModels
public string PreferredExchange { get; set; }
public SelectList Exchanges { get; set; }
public bool CanEditPreferredExchange { get; set; }
}
}