From a5b83ad38b1eea2b45956122faf8772d43e86c4e Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 3 Aug 2023 20:49:42 +0200 Subject: [PATCH] fix file seller --- .../BTCPayServer.Plugins.FileSeller.csproj | 2 +- .../FileSellerPlugin.cs | 2 +- .../FileSellerTemplateEditorItemDetail.cshtml | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Plugins/BTCPayServer.Plugins.FileSeller/BTCPayServer.Plugins.FileSeller.csproj b/Plugins/BTCPayServer.Plugins.FileSeller/BTCPayServer.Plugins.FileSeller.csproj index 13268a5..93e93d0 100644 --- a/Plugins/BTCPayServer.Plugins.FileSeller/BTCPayServer.Plugins.FileSeller.csproj +++ b/Plugins/BTCPayServer.Plugins.FileSeller/BTCPayServer.Plugins.FileSeller.csproj @@ -9,7 +9,7 @@ File Seller Allows you to sell files through the point of sale/crowdfund apps. - 1.0.0 + 1.0.1 diff --git a/Plugins/BTCPayServer.Plugins.FileSeller/FileSellerPlugin.cs b/Plugins/BTCPayServer.Plugins.FileSeller/FileSellerPlugin.cs index 9fdf154..b58861c 100644 --- a/Plugins/BTCPayServer.Plugins.FileSeller/FileSellerPlugin.cs +++ b/Plugins/BTCPayServer.Plugins.FileSeller/FileSellerPlugin.cs @@ -9,7 +9,7 @@ public class FileSellerPlugin : BaseBTCPayServerPlugin { public override IBTCPayServerPlugin.PluginDependency[] Dependencies { get; } = { - new() { Identifier = nameof(BTCPayServer), Condition = ">=1.10.3" } + new() { Identifier = nameof(BTCPayServer), Condition = ">=1.11.1" } }; public override void Execute(IServiceCollection applicationBuilder) { diff --git a/Plugins/BTCPayServer.Plugins.FileSeller/Views/Shared/FileSeller/FileSellerTemplateEditorItemDetail.cshtml b/Plugins/BTCPayServer.Plugins.FileSeller/Views/Shared/FileSeller/FileSellerTemplateEditorItemDetail.cshtml index 5ee41b5..f7c1d57 100644 --- a/Plugins/BTCPayServer.Plugins.FileSeller/Views/Shared/FileSeller/FileSellerTemplateEditorItemDetail.cshtml +++ b/Plugins/BTCPayServer.Plugins.FileSeller/Views/Shared/FileSeller/FileSellerTemplateEditorItemDetail.cshtml @@ -12,8 +12,10 @@ UserIds = await UserService.IsAdminUser(userId) ? Array.Empty() : new[] {userId}, })).Select(file => new SelectListItem(file.FileName, file.Id)).Prepend(new SelectListItem("No file", "")); } -
- - - If a file is selected, when a user buys this item, a download link is generated in the payment receipt once the invoice is settled. Upload files here -
\ No newline at end of file + \ No newline at end of file