mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
Custom validation message for Crowdfund form primary currency
This commit is contained in:
parent
0eee8e7464
commit
8f5f07882f
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ namespace BTCPayServer.Models.AppViewModels
|
|||
public DateTime? StartDate { get; set; }
|
||||
public DateTime? EndDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[Required(ErrorMessage="The primary currency is required")]
|
||||
[MaxLength(5)]
|
||||
[Display(Name = "The primary currency used for targets and stats. (e.g. BTC, LTC, USD, etc.)")]
|
||||
public string TargetCurrency { get; set; } = "BTC";
|
||||
|
|
Loading…
Add table
Reference in a new issue