mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
25 lines
703 B
C#
25 lines
703 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BTCPayServer.Services.Notifications;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace BTCPayServer.Components.NotificationsDropdown
|
|
{
|
|
public class NotificationsDropdown : ViewComponent
|
|
{
|
|
private readonly NotificationManager _notificationManager;
|
|
|
|
public NotificationsDropdown(NotificationManager notificationManager)
|
|
{
|
|
_notificationManager = notificationManager;
|
|
}
|
|
|
|
public async Task<IViewComponentResult> InvokeAsync()
|
|
{
|
|
return View(await _notificationManager.GetSummaryNotifications(UserClaimsPrincipal));
|
|
}
|
|
}
|
|
}
|