diff --git a/Oqtane.Client/Modules/Admin/ModuleDefinitions/Add.razor b/Oqtane.Client/Modules/Admin/ModuleDefinitions/Add.razor index e1b6387a8..358fb1c55 100644 --- a/Oqtane.Client/Modules/Admin/ModuleDefinitions/Add.razor +++ b/Oqtane.Client/Modules/Admin/ModuleDefinitions/Add.razor @@ -48,7 +48,10 @@ - + @if (_price == "free") + { + + } @if (_price == "paid") { @@ -74,13 +77,19 @@
@SharedLocalizer["Search.Version"]: @context.Version -
@SharedLocalizer["Search.Downloads"]: @(String.Format("{0:n0}", context.Downloads))
@SharedLocalizer["Search.Released"]: @context.ReleaseDate.ToString("MM/dd/yyyy") @if (!string.IsNullOrEmpty(context.PackageUrl)) { -
- - @SharedLocalizer["Search.Source"]: @(new Uri(context.PackageUrl).Host) +
@SharedLocalizer["Search.Source"]: @(new Uri(context.PackageUrl).Host) + } + @if (_price == "free") + { +
@SharedLocalizer["Search.Downloads"]: @(String.Format("{0:n0}", context.Downloads)) + } + else + { +
@SharedLocalizer["From"]: @context.Price.Value.ToString("$#,##0.00") + @((MarkupString)(context.TrialPeriod > 0 ? " (" + context.TrialPeriod + " Day Trial)" : "")) }
@@ -89,11 +98,6 @@

@context.Name


@SharedLocalizer["Search.By"]: @context.Owner
@(context.Description.Length > 400 ? (context.Description.Substring(0, 400) + "...") : context.Description)
- @if (context.Price != null && !string.IsNullOrEmpty(context.PaymentUrl)) - { - @SharedLocalizer["From"]: @context.Price.Value.ToString("$#,##0.00") - @((MarkupString)(context.TrialPeriod > 0 ? " (" + context.TrialPeriod + " Day Trial)" : "")) - }
@if (!string.IsNullOrEmpty(context.PackageUrl)) { @@ -215,6 +219,7 @@ private async void PriceChanged(string price) { _price = price; + _sort = "popularity"; await LoadThemes(); StateHasChanged(); } diff --git a/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Add.resx b/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Add.resx index 1f28095ee..a75079fd8 100644 --- a/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Add.resx +++ b/Oqtane.Client/Resources/Modules/Admin/ModuleDefinitions/Add.resx @@ -124,7 +124,7 @@ Error Loading Packages - Module Package Saved Successfully. You Must <a href={0}>Restart</a> Your Application To Complete The Installation. + Module Package Downloaded Successfully. You Must <a href={0}>Restart</a> Your Application To Complete The Installation. Error Downloading Module diff --git a/Oqtane.Client/Resources/Modules/Admin/Themes/Add.resx b/Oqtane.Client/Resources/Modules/Admin/Themes/Add.resx index 08723fba8..937120156 100644 --- a/Oqtane.Client/Resources/Modules/Admin/Themes/Add.resx +++ b/Oqtane.Client/Resources/Modules/Admin/Themes/Add.resx @@ -124,7 +124,7 @@ Theme: - Theme Package Saved Successfully. You Must <a href={0}>Restart</a> Your Application To Complete The Installation. + Theme Package Downloaded Successfully. You Must <a href={0}>Restart</a> Your Application To Complete The Installation. Error Downloading Theme diff --git a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.js b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.js index 11d3ded69..8f0724708 100644 --- a/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.js +++ b/Oqtane.Server/wwwroot/Modules/Templates/External/Server/wwwroot/Modules/[Owner].Module.[Module]/Module.js @@ -1,5 +1,5 @@ /* Module Script */ var [Owner] = [Owner] || {}; -[Owner].Module.[Module] = { +[Owner].[Module] = { }; \ No newline at end of file