Ensure campaign status is shown correctly in minimal crowdfund app (#2062)

This commit is contained in:
Umar Bolatov
2020-12-11 22:23:59 -08:00
committed by GitHub
parent ed497cab99
commit a294ad41cb
3 changed files with 10 additions and 2 deletions

View File

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

View File

@@ -87,7 +87,7 @@
</h5>
<h5 class="text-muted">Contributors</h5>
</div>
@if (Model.Started && !Model.Ended)
@if (Model.Started && !Model.Ended && Model.EndDate.HasValue)
{
<div class="col-sm">
<h5>

View File

@@ -46,6 +46,14 @@
{
<noscript>
@await Html.PartialAsync("/Views/AppsPublic/Crowdfund/MinimalCrowdfund.cshtml", Model)
<style>
/* Hide the below canvas or else user will be staring "Loading..." text when JS is disabled */
#fireworks,
#app {
display:none;
}
</style>
</noscript>
if (Model.AnimationsEnabled)