Fixed TradingView chart flashing in the bag details pop-up
This commit is contained in:
parent
cd551ef8da
commit
0aa36bac86
|
@ -536,16 +536,7 @@ namespace Core.Helper
|
|||
string result = "#";
|
||||
if (platform.Equals("TradingView"))
|
||||
{
|
||||
result = "https://www.tradingview.com/chart/?symbol=" + exchange.ToUpper() + ":";
|
||||
|
||||
string pairName = SystemHelper.StripBadCode(market, Constants.WhiteListMinimal);
|
||||
|
||||
if (pairName.StartsWith(mainMarket))
|
||||
{
|
||||
pairName = pairName.Replace(mainMarket, "") + mainMarket;
|
||||
}
|
||||
|
||||
result += pairName;
|
||||
result = "https://uk.tradingview.com/symbols/" + market.ToUpper() + "/?exchange=" + exchange.ToUpper();
|
||||
}
|
||||
else if (platform.Equals("TradingViewFutures"))
|
||||
{
|
||||
|
|
|
@ -102,7 +102,10 @@
|
|||
<!-- TradingView Widget BEGIN -->
|
||||
<div class="tradingview-widget-container">
|
||||
<div id="tradingview_6aa22" style="height:600px;"></div>
|
||||
<div class="tradingview-widget-copyright"><a href="@Core.Helper.SystemHelper.GetMarketLink(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform,Model.PTMagicConfiguration.GeneralSettings.Application.Exchange, Model.DCAMarket, Model.Summary.MainMarket)" rel="noopener" target="_blank"><span class="blue-text">@Model.DCAMarket</span> <span class="blue-text">chart</span> by TradingView</a></div>
|
||||
<div class="tradingview-widget-copyright">
|
||||
<a href="@Core.Helper.SystemHelper.GetMarketLink(Model.PTMagicConfiguration.GeneralSettings.Monitor.LinkPlatform,Model.PTMagicConfiguration.GeneralSettings.Application.Exchange, Model.DCAMarket, Model.Summary.MainMarket)" rel="noopener" target="_blank">
|
||||
<span class="blue-text">@Model.DCAMarket</span> <span class="blue-text">chart</span> by TradingView</a>
|
||||
</div>
|
||||
</div>
|
||||
<!-- TradingView Widget END -->
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue