mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
* 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
31 lines
927 B
C#
31 lines
927 B
C#
using System;
|
|
|
|
namespace BTCPayServer.Models
|
|
{
|
|
public class ConfirmModel
|
|
{
|
|
private const string ButtonClassDefault = "btn-danger";
|
|
|
|
public ConfirmModel() {}
|
|
|
|
public ConfirmModel(string title, string desc, string action = null, string buttonClass = ButtonClassDefault)
|
|
{
|
|
Title = title;
|
|
Description = desc;
|
|
Action = action;
|
|
ButtonClass = buttonClass;
|
|
|
|
if (Description.Contains("<strong>", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
DescriptionHtml = true;
|
|
}
|
|
}
|
|
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public bool DescriptionHtml { get; set; }
|
|
public string Action { get; set; }
|
|
public string ButtonClass { get; set; } = ButtonClassDefault;
|
|
public string ActionUrl { get; set; }
|
|
}
|
|
}
|