GetStore(AppData app)
+ {
+ using (var ctx = _ContextFactory.CreateContext())
+ {
+ return await ctx.Stores.FirstOrDefaultAsync(s => s.Id == app.StoreDataId);
+ }
+ }
}
}
diff --git a/BTCPayServer/Services/Apps/AppType.cs b/BTCPayServer/Services/Apps/AppType.cs
index da9563bd0..bd9d3ff06 100644
--- a/BTCPayServer/Services/Apps/AppType.cs
+++ b/BTCPayServer/Services/Apps/AppType.cs
@@ -7,6 +7,7 @@ namespace BTCPayServer.Services.Apps
{
public enum AppType
{
- PointOfSale
+ PointOfSale,
+ PayButton
}
}
diff --git a/BTCPayServer/Views/Apps/ListApps.cshtml b/BTCPayServer/Views/Apps/ListApps.cshtml
index 773372650..f9340ea23 100644
--- a/BTCPayServer/Views/Apps/ListApps.cshtml
+++ b/BTCPayServer/Views/Apps/ListApps.cshtml
@@ -1,4 +1,5 @@
-@model ListAppsViewModel
+@using BTCPayServer.Services.Apps
+@model ListAppsViewModel
@{
ViewData["Title"] = "Stores";
}
@@ -48,10 +49,9 @@
| @app.AppName |
@app.AppType |
- @if (app.IsOwner)
+ @if (app.IsOwner && app.AppType != AppType.PayButton.ToString())
{
Settings -
- Pay Button -
}
View -
Remove
diff --git a/BTCPayServer/Views/Apps/PayButton.cshtml b/BTCPayServer/Views/Apps/ViewPayButton.cshtml
similarity index 100%
rename from BTCPayServer/Views/Apps/PayButton.cshtml
rename to BTCPayServer/Views/Apps/ViewPayButton.cshtml
|