mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Ensure campaign status is shown correctly in minimal crowdfund app (#2062)
This commit is contained in:
@@ -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; }
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user