Merge pull request #765 from Kukks/bugfix/crowdfund

Fix dynamic  crowdfund labelling
This commit is contained in:
Nicolas Dorier
2019-04-15 15:26:58 +09:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ namespace BTCPayServer.Models.AppViewModels
public bool Ended => !EndDate.HasValue || DateTime.Now.ToUniversalTime() > EndDate;
public bool DisplayPerksRanking { get; set; }
public bool Enabled { get; set; }
public string ResetEvery { get; set; }
}
public class ContributeToCrowdfund

View File

@@ -139,6 +139,7 @@ namespace BTCPayServer.Services.Apps
DisqusShortname = settings.DisqusShortname,
AnimationsEnabled = settings.AnimationsEnabled,
ResetEveryAmount = settings.ResetEveryAmount,
ResetEvery = Enum.GetName(typeof(CrowdfundResetEvery), settings.ResetEvery),
DisplayPerksRanking = settings.DisplayPerksRanking,
PerkCount = perkCount,
NeverReset = settings.ResetEvery == CrowdfundResetEvery.Never,