fix #3134 improve parsing of headcontent to handle space delimiters

This commit is contained in:
sbwalker
2023-08-11 15:53:32 -04:00
parent 7dbcb24f3d
commit 316e0f5a68
3 changed files with 10 additions and 7 deletions

View File

@ -96,7 +96,7 @@
{
<button type="button" class="btn btn-primary" @onclick=@(async () => await GetPackage(context.PackageId, context.Version))>@SharedLocalizer["Download"]</button>
}
@if (context.Price != null && !string.IsNullOrEmpty(context.PaymentUrl))
@if (context.Price != null && !string.IsNullOrEmpty(context.PaymentUrl) && string.IsNullOrEmpty(context.PackageUrl))
{
<a class="btn btn-success ms-2" style="text-decoration: none !important" href="@context.PaymentUrl" target="_new">@SharedLocalizer["Buy"]</a>
}