mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 15:04:19 +01:00
Crowdfund finetuning (#3488)
* Update crowdfund defaults * Crowdfund: Move sound, animation and discussion into additional options * Update sound URLs Fixes #3745. * Update featured image URL label * Improve the recurring goal section * Crowdfund: Goal section finetuning
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using BTCPayServer.Services.Apps;
|
||||
using BTCPayServer.Validation;
|
||||
|
||||
@@ -28,7 +29,7 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
[Required]
|
||||
public string Description { get; set; }
|
||||
|
||||
[Display(Name = "Featured Image")]
|
||||
[Display(Name = "Featured Image URL")]
|
||||
public string MainImageUrl { get; set; }
|
||||
|
||||
[Display(Name = "Callback Notification URL")]
|
||||
@@ -68,11 +69,15 @@ namespace BTCPayServer.Models.AppViewModels
|
||||
[Range(0, double.PositiveInfinity)]
|
||||
public decimal? TargetAmount { get; set; }
|
||||
|
||||
public IEnumerable<string> ResetEveryValues = Enum.GetNames(typeof(CrowdfundResetEvery));
|
||||
public IEnumerable<string> ResetEveryValues = Enum.GetNames(typeof(CrowdfundResetEvery))
|
||||
.Where(i => i != nameof(CrowdfundResetEvery.Never));
|
||||
|
||||
public bool IsRecurring { get; set; }
|
||||
|
||||
[Display(Name = "Reset goal every")]
|
||||
public string ResetEvery { get; set; } = nameof(CrowdfundResetEvery.Never);
|
||||
|
||||
[Display(Name = "Reset goal every")]
|
||||
public int ResetEveryAmount { get; set; } = 1;
|
||||
|
||||
[Display(Name = "Do not allow additional contributions after target has been reached")]
|
||||
|
||||
Reference in New Issue
Block a user