mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +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 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 DisplayPerksRanking { get; set; }
|
||||||
public bool Enabled { get; set; }
|
public bool Enabled { get; set; }
|
||||||
public string ResetEvery { get; set; }
|
public string ResetEvery { get; set; }
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
</h5>
|
</h5>
|
||||||
<h5 class="text-muted">Contributors</h5>
|
<h5 class="text-muted">Contributors</h5>
|
||||||
</div>
|
</div>
|
||||||
@if (Model.Started && !Model.Ended)
|
@if (Model.Started && !Model.Ended && Model.EndDate.HasValue)
|
||||||
{
|
{
|
||||||
<div class="col-sm">
|
<div class="col-sm">
|
||||||
<h5>
|
<h5>
|
||||||
|
|||||||
@@ -46,6 +46,14 @@
|
|||||||
{
|
{
|
||||||
<noscript>
|
<noscript>
|
||||||
@await Html.PartialAsync("/Views/AppsPublic/Crowdfund/MinimalCrowdfund.cshtml", Model)
|
@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>
|
</noscript>
|
||||||
|
|
||||||
if (Model.AnimationsEnabled)
|
if (Model.AnimationsEnabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user