mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
54539001f1
* Allow User to delete own account * Add User delete e2e test * fix test * Apply suggestions from code review Co-authored-by: d11n <mail@dennisreimann.de> Co-authored-by: d11n <mail@dennisreimann.de>
34 lines
988 B
C#
34 lines
988 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, string actionUrl = null)
|
|
{
|
|
Title = title;
|
|
Description = desc;
|
|
Action = action;
|
|
ButtonClass = buttonClass;
|
|
|
|
if (Description.Contains("<strong>", StringComparison.InvariantCultureIgnoreCase))
|
|
{
|
|
DescriptionHtml = true;
|
|
}
|
|
|
|
ActionUrl = actionUrl;
|
|
}
|
|
|
|
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; }
|
|
}
|
|
}
|