Add webhook delivery status indicator (#2679)

* Add webhook delivery status indicator

As discussed in: https://github.com/btcpayserver/btcpayserver/discussions/2616

* Add relative delivery time to tooltips
This commit is contained in:
Umar Bolatov
2021-07-12 05:58:11 -07:00
committed by GitHub
parent d5019f61ce
commit 861e5b1530
3 changed files with 50 additions and 14 deletions

View File

@@ -1,7 +1,5 @@
#nullable enable
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace BTCPayServer.Models.StoreViewModels
{
@@ -11,6 +9,9 @@ namespace BTCPayServer.Models.StoreViewModels
{
public string Id { get; set; }
public string Url { get; set; }
public bool LastDeliverySuccessful { get; set; } = true;
public DateTimeOffset? LastDeliveryTimeStamp { get; set; } = null;
public string? LastDeliveryErrorMessage { get; set; } = null;
}
public WebhookViewModel[] Webhooks { get; set; }
}