Fix dynamic crowdfund labelling

closes #760
This commit is contained in:
Kukks 2019-04-13 13:22:19 +02:00
parent 7ef11817c1
commit 6f7e0205f8
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,