mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Refresh UI notifications automatically on update (#1680)
* Refresh UI notifications automatically on update * make notif timeago live * pass cancellation token * Update InvoiceEventData.cs
This commit is contained in:
@@ -37,7 +37,10 @@ namespace BTCPayServer.Services.Notifications.Blobs
|
||||
NotificationViewModel vm)
|
||||
{
|
||||
var baseStr = $"Invoice {notification.InvoiceId.Substring(0, 5)}..";
|
||||
vm.Body = $"{baseStr} {TextMapping[notification.Event]}";
|
||||
if (TextMapping.ContainsKey(notification.Event))
|
||||
{
|
||||
vm.Body = $"{baseStr} {TextMapping[notification.Event]}";
|
||||
}
|
||||
vm.ActionLink = _linkGenerator.GetPathByAction(nameof(InvoiceController.Invoice),
|
||||
"Invoice",
|
||||
new {invoiceId = notification.InvoiceId}, _options.RootPath);
|
||||
|
||||
Reference in New Issue
Block a user