mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 10:30:47 +01:00
Move ConfirmModel to Abstractions (#3964)
To make it available to plugins.
This commit is contained in:
parent
f8619e382b
commit
e8291eb00e
29 changed files with 32 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace BTCPayServer.Models
|
namespace BTCPayServer.Abstractions.Models
|
||||||
{
|
{
|
||||||
public class ConfirmModel
|
public class ConfirmModel
|
||||||
{
|
{
|
|
@ -2,6 +2,7 @@ using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Abstractions.Constants;
|
using BTCPayServer.Abstractions.Constants;
|
||||||
|
using BTCPayServer.Abstractions.Models;
|
||||||
using BTCPayServer.Client;
|
using BTCPayServer.Client;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Models;
|
using BTCPayServer.Models;
|
||||||
|
|
|
@ -41,7 +41,6 @@ namespace BTCPayServer.Controllers
|
||||||
return View("Confirm", new ConfirmModel
|
return View("Confirm", new ConfirmModel
|
||||||
{
|
{
|
||||||
Title = "Delete API key",
|
Title = "Delete API key",
|
||||||
DescriptionHtml = true,
|
|
||||||
Description = $"Any application using the API key <strong>{key.Label ?? key.Id}<strong> will immediately lose access.",
|
Description = $"Any application using the API key <strong>{key.Label ?? key.Id}<strong> will immediately lose access.",
|
||||||
Action = "Delete",
|
Action = "Delete",
|
||||||
ActionName = nameof(DeleteAPIKeyPost)
|
ActionName = nameof(DeleteAPIKeyPost)
|
||||||
|
|
|
@ -3,6 +3,7 @@ using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Abstractions.Constants;
|
using BTCPayServer.Abstractions.Constants;
|
||||||
|
using BTCPayServer.Abstractions.Models;
|
||||||
using BTCPayServer.Client.Models;
|
using BTCPayServer.Client.Models;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Models;
|
using BTCPayServer.Models;
|
||||||
|
|
|
@ -664,7 +664,6 @@ namespace BTCPayServer.Controllers
|
||||||
{
|
{
|
||||||
Title = $"Replace {network.CryptoCode} wallet",
|
Title = $"Replace {network.CryptoCode} wallet",
|
||||||
Description = WalletReplaceWarning(derivation.IsHotWallet),
|
Description = WalletReplaceWarning(derivation.IsHotWallet),
|
||||||
DescriptionHtml = true,
|
|
||||||
Action = "Setup new wallet"
|
Action = "Setup new wallet"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -702,7 +701,6 @@ namespace BTCPayServer.Controllers
|
||||||
{
|
{
|
||||||
Title = $"Remove {network.CryptoCode} wallet",
|
Title = $"Remove {network.CryptoCode} wallet",
|
||||||
Description = WalletRemoveWarning(derivation.IsHotWallet, network.CryptoCode),
|
Description = WalletRemoveWarning(derivation.IsHotWallet, network.CryptoCode),
|
||||||
DescriptionHtml = true,
|
|
||||||
Action = "Remove"
|
Action = "Remove"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -803,7 +801,7 @@ namespace BTCPayServer.Controllers
|
||||||
? ""
|
? ""
|
||||||
: " or imported it into an external wallet. If you no longer have access to your private key (recovery seed), immediately replace the wallet";
|
: " or imported it into an external wallet. If you no longer have access to your private key (recovery seed), immediately replace the wallet";
|
||||||
return
|
return
|
||||||
$"<p class=\"text-danger fw-bold\">Please note that this is a {walletType} wallet!</p>" +
|
$"<p class=\"text-danger fw-bold\">Please note that this is a <strong>{walletType} wallet</strong>!</p>" +
|
||||||
$"<p class=\"text-danger fw-bold\">Do not proceed if you have not backed up the wallet{additionalText}.</p>" +
|
$"<p class=\"text-danger fw-bold\">Do not proceed if you have not backed up the wallet{additionalText}.</p>" +
|
||||||
$"<p class=\"text-start mb-0\">This action will erase the current wallet data from the server. {info}</p>";
|
$"<p class=\"text-start mb-0\">This action will erase the current wallet data from the server. {info}</p>";
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Abstractions.Constants;
|
using BTCPayServer.Abstractions.Constants;
|
||||||
|
using BTCPayServer.Abstractions.Models;
|
||||||
using BTCPayServer.Client;
|
using BTCPayServer.Client;
|
||||||
using BTCPayServer.Configuration;
|
using BTCPayServer.Configuration;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
|
|
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using BTCPayServer.Abstractions.Constants;
|
using BTCPayServer.Abstractions.Constants;
|
||||||
|
using BTCPayServer.Abstractions.Models;
|
||||||
using BTCPayServer.Client;
|
using BTCPayServer.Client;
|
||||||
using BTCPayServer.Data;
|
using BTCPayServer.Data;
|
||||||
using BTCPayServer.Models;
|
using BTCPayServer.Models;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@model ConfirmModel
|
@model BTCPayServer.Abstractions.Models.ConfirmModel
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = Model.Title;
|
ViewData["Title"] = Model.Title;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@model ConfirmModel
|
@model BTCPayServer.Abstractions.Models.ConfirmModel
|
||||||
@inject LinkGenerator linkGenerator
|
@inject LinkGenerator linkGenerator
|
||||||
@{
|
@{
|
||||||
string actionUrl = null;
|
string actionUrl = null;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
@model ConfirmModel
|
@model BTCPayServer.Abstractions.Models.ConfirmModel
|
||||||
<div class="modal fade" id="ConfirmModal" tabindex="-1" aria-labelledby="ConfirmTitle" aria-hidden="true">
|
<div class="modal fade" id="ConfirmModal" tabindex="-1" aria-labelledby="ConfirmTitle" aria-hidden="true">
|
||||||
<partial name="ConfirmModal" model="Model" />
|
<partial name="ConfirmModal" model="Model" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@using BTCPayServer.Services.Apps
|
@using BTCPayServer.Services.Apps
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model ListAppsViewModel
|
@model ListAppsViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(AppsNavPages.Index, "Apps");
|
ViewData.SetActivePage(AppsNavPages.Index, "Apps");
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||||
@using System.Globalization
|
@using System.Globalization
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model UpdateCrowdfundViewModel
|
@model UpdateCrowdfundViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(AppsNavPages.Update, "Update Crowdfund", Model.AppId);
|
ViewData.SetActivePage(AppsNavPages.Update, "Update Crowdfund", Model.AppId);
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@using BTCPayServer.Services.Apps
|
@using BTCPayServer.Services.Apps
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@addTagHelper *, BundlerMinifier.TagHelpers
|
@addTagHelper *, BundlerMinifier.TagHelpers
|
||||||
@model UpdatePointOfSaleViewModel
|
@model UpdatePointOfSaleViewModel
|
||||||
@{
|
@{
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@using BTCPayServer.Views.Stores
|
@using BTCPayServer.Views.Stores
|
||||||
@using BTCPayServer.Abstractions.Extensions
|
@using BTCPayServer.Abstractions.Extensions
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model UILNURLController.EditLightningAddressVM
|
@model UILNURLController.EditLightningAddressVM
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage("LightningAddress", nameof(StoreNavPages), "Lightning Address", Context.GetStoreData().Id);
|
ViewData.SetActivePage("LightningAddress", nameof(StoreNavPages), "Lightning Address", Context.GetStoreData().Id);
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@namespace BTCPayServer.Client
|
@namespace BTCPayServer.Client
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model BTCPayServer.Controllers.UIManageController.ApiKeysViewModel
|
@model BTCPayServer.Controllers.UIManageController.ApiKeysViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ManageNavPages.APIKeys, "API Keys");
|
ViewData.SetActivePage(ManageNavPages.APIKeys, "API Keys");
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model IndexViewModel
|
@model IndexViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ManageNavPages.Index, "Update your account");
|
ViewData.SetActivePage(ManageNavPages.Index, "Update your account");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@using Fido2NetLib
|
@using Fido2NetLib
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model TwoFactorAuthenticationViewModel
|
@model TwoFactorAuthenticationViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ManageNavPages.TwoFactorAuthentication, "Two-Factor Authentication");
|
ViewData.SetActivePage(ManageNavPages.TwoFactorAuthentication, "Two-Factor Authentication");
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@using BTCPayServer.Abstractions.Extensions
|
@using BTCPayServer.Abstractions.Extensions
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model List<BTCPayServer.PayoutProcessors.UIPayoutProcessorsController.StorePayoutProcessorsView>
|
@model List<BTCPayServer.PayoutProcessors.UIPayoutProcessorsController.StorePayoutProcessorsView>
|
||||||
@{
|
@{
|
||||||
ViewData["NavPartialName"] = "../UIStores/_Nav";
|
ViewData["NavPartialName"] = "../UIStores/_Nav";
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@model BTCPayServer.Models.ServerViewModels.DynamicDnsViewModel[]
|
@using BTCPayServer.Abstractions.Models
|
||||||
|
@model BTCPayServer.Models.ServerViewModels.DynamicDnsViewModel[]
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ServerNavPages.Services, "Dynamic DNS Settings");
|
ViewData.SetActivePage(ServerNavPages.Services, "Dynamic DNS Settings");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@model UsersViewModel
|
@using BTCPayServer.Abstractions.Models
|
||||||
|
@model UsersViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ServerNavPages.Users);
|
ViewData.SetActivePage(ServerNavPages.Users);
|
||||||
var nextUserEmailSortOrder = (string)ViewData["NextUserEmailSortOrder"];
|
var nextUserEmailSortOrder = (string)ViewData["NextUserEmailSortOrder"];
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@model LndSeedBackupViewModel
|
@using BTCPayServer.Abstractions.Models
|
||||||
|
@model LndSeedBackupViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ServerNavPages.Services, "LND Seed Backup");
|
ViewData.SetActivePage(ServerNavPages.Services, "LND Seed Backup");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model BTCPayServer.Models.ServerViewModels.SSHServiceViewModel
|
@model BTCPayServer.Models.ServerViewModels.SSHServiceViewModel
|
||||||
@{
|
@{
|
||||||
ViewData.SetActivePage(ServerNavPages.Services, "SSH settings");
|
ViewData.SetActivePage(ServerNavPages.Services, "SSH settings");
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
@using BTCPayServer.Views.Stores
|
@using BTCPayServer.Views.Stores
|
||||||
@using BTCPayServer.Abstractions.Extensions
|
@using BTCPayServer.Abstractions.Extensions
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@using BTCPayServer.Client
|
@using BTCPayServer.Client
|
||||||
@using BTCPayServer.Client.Models
|
@using BTCPayServer.Client.Models
|
||||||
@using ExchangeSharp
|
@using ExchangeSharp
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model GeneralSettingsViewModel
|
@model GeneralSettingsViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "../Shared/_NavLayout.cshtml";
|
Layout = "../Shared/_NavLayout.cshtml";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model TokensViewModel
|
@model TokensViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "../Shared/_NavLayout.cshtml";
|
Layout = "../Shared/_NavLayout.cshtml";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model BTCPayServer.Models.StoreViewModels.RatesViewModel
|
@model BTCPayServer.Models.StoreViewModels.RatesViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "../Shared/_NavLayout.cshtml";
|
Layout = "../Shared/_NavLayout.cshtml";
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
@model StoreUsersViewModel
|
@using BTCPayServer.Abstractions.Models
|
||||||
|
@model StoreUsersViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "../Shared/_NavLayout.cshtml";
|
Layout = "../Shared/_NavLayout.cshtml";
|
||||||
ViewData.SetActivePage(StoreNavPages.Users, "Store Users", Context.GetStoreData().Id);
|
ViewData.SetActivePage(StoreNavPages.Users, "Store Users", Context.GetStoreData().Id);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
@using NBitcoin.DataEncoders
|
@using NBitcoin.DataEncoders
|
||||||
@using Newtonsoft.Json
|
@using Newtonsoft.Json
|
||||||
@using System.Text
|
@using System.Text
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model WalletSettingsViewModel
|
@model WalletSettingsViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "../Shared/_NavLayout.cshtml";
|
Layout = "../Shared/_NavLayout.cshtml";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
@using BTCPayServer.Abstractions.Models
|
||||||
@model WebhooksViewModel
|
@model WebhooksViewModel
|
||||||
@{
|
@{
|
||||||
Layout = "../Shared/_NavLayout.cshtml";
|
Layout = "../Shared/_NavLayout.cshtml";
|
||||||
|
|
Loading…
Add table
Reference in a new issue