mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
06db29dd43
* Refactor confirm view: separate modal * Add delete confirmation modals for apps and FIDO2 * Add delete confirmation modals for 2FA actions * Add delete confirmation modals for api keys and webhooks * Add delete confirmation modals for stores and store users * Add delete confirmation modals for LND seed and SSH * Add delete confirmation modals for rate rule scripting * Test fixes and improvements * Add delete confirmation modals for dynamic DNS * Add delete confirmation modals for store access tokens * Add confirmation modals for pull payment archiving * Refactor confirm modal code * Add confirmation input, update wording * Update modal styles * Upgrade ChromeDriver * Simplify and unify confirmation input * Test fixes * Fix wording * Add modals for wallet replace and removal
60 lines
1.1 KiB
C#
60 lines
1.1 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using BTCPayServer.Validation;
|
|
using Microsoft.AspNetCore.Mvc.Rendering;
|
|
|
|
namespace BTCPayServer.Models.StoreViewModels
|
|
{
|
|
public class CreateTokenViewModel
|
|
{
|
|
[Display(Name = "Public Key")]
|
|
[PubKeyValidatorAttribute]
|
|
public string PublicKey
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public string Label
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Required]
|
|
public string StoreId
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public SelectList Stores
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
public class TokenViewModel
|
|
{
|
|
public string Id
|
|
{
|
|
get; set;
|
|
}
|
|
public string Label
|
|
{
|
|
get; set;
|
|
}
|
|
public string SIN
|
|
{
|
|
get; set;
|
|
}
|
|
}
|
|
public class TokensViewModel
|
|
{
|
|
public TokenViewModel[] Tokens
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
[Display(Name = "API Key")]
|
|
public string ApiKey { get; set; }
|
|
public string EncodedApiKey { get; set; }
|
|
public bool StoreNotConfigured { get; set; }
|
|
}
|
|
}
|