fix #1617 convert line break to comma when saving aliases, improve license acceptance user experience
This commit is contained in:
@ -133,11 +133,12 @@ else
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">@_productname @Localizer["License Terms"]</h5>
|
||||
<h5 class="modal-title">@Localizer["License Terms"]</h5>
|
||||
<button type="button" class="btn-close" aria-label="Close" @onclick="HideModal"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p style="height: 200px; overflow-y: scroll;">
|
||||
<h3>@_productname</h3>
|
||||
@if (!string.IsNullOrEmpty(_license))
|
||||
{
|
||||
@((MarkupString)_license)
|
||||
@ -216,7 +217,7 @@ else
|
||||
await logger.LogError(ex, "Error On PriceChanged");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private async Task Search()
|
||||
{
|
||||
try
|
||||
@ -297,7 +298,10 @@ else
|
||||
if (package != null)
|
||||
{
|
||||
_productname = package.Name;
|
||||
_license = package.License.Replace("\n", "<br />");
|
||||
if (!string.IsNullOrEmpty(package.License))
|
||||
{
|
||||
_license = package.License.Replace("\n", "<br />");
|
||||
}
|
||||
_packageid = package.PackageId;
|
||||
_version = package.Version;
|
||||
}
|
||||
|
Reference in New Issue
Block a user