Do not show assets in sync modal (#1309)

This commit is contained in:
Andrew Camilleri 2020-01-26 11:45:52 +01:00 committed by Nicolas Dorier
parent 06f1c17a5f
commit e058903450
3 changed files with 5 additions and 7 deletions

View File

@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using NBitcoin;
using NBXplorer;
using NBitcoin;
namespace BTCPayServer
{
@ -16,6 +11,7 @@ namespace BTCPayServer
{
CryptoCode = "USDt",
NetworkCryptoCode = "LBTC",
ShowSyncSummary = false,
DefaultRateRules = new[]
{
"USDT_UST = 1",
@ -37,6 +33,7 @@ namespace BTCPayServer
{
CryptoCode = "ETB",
NetworkCryptoCode = "LBTC",
ShowSyncSummary = false,
DefaultRateRules = new[]
{

View File

@ -121,6 +121,7 @@ namespace BTCPayServer
public abstract class BTCPayNetworkBase
{
public bool ShowSyncSummary { get; set; } = true;
public string CryptoCode { get; internal set; }
public string BlockExplorerLink { get; internal set; }
public string DisplayName { get; set; }

View File

@ -14,7 +14,7 @@
<p>
Your node is synching the entire blockchain and validating the consensus rules...
</p>
@foreach (var line in dashboard.GetAll())
@foreach (var line in dashboard.GetAll().Where(summary => summary.Network.ShowSyncSummary))
{
<h4>@line.Network.CryptoCode</h4>
@if (line.Status == null)