mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
Fixes the return URL for the case in which the dropdown content got replaced after a notification update: As the refresh request is done via AJAX, the return URL previously was `/notifications/getnotificationdropdownui` (the `Context.Request.GetCurrentPathWithQueryString()` value of the AJAX action). We need to pass in the URL of the actual current page as the return URL.
12 lines
336 B
C#
12 lines
336 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Abstractions.Contracts;
|
|
|
|
namespace BTCPayServer.Components.Notifications
|
|
{
|
|
public class NotificationsViewModel
|
|
{
|
|
public string ReturnUrl { get; set; }
|
|
public int UnseenCount { get; set; }
|
|
public List<NotificationViewModel> Last5 { get; set; }
|
|
}
|
|
}
|