diff --git a/BTCPayServer/Components/Icon/Default.cshtml b/BTCPayServer/Components/Icon/Default.cshtml new file mode 100644 index 000000000..8576c0b5f --- /dev/null +++ b/BTCPayServer/Components/Icon/Default.cshtml @@ -0,0 +1,5 @@ +@model BTCPayServer.Components.Icon.IconViewModel + + diff --git a/BTCPayServer/Components/Icon/Icon.cs b/BTCPayServer/Components/Icon/Icon.cs new file mode 100644 index 000000000..ece7789a4 --- /dev/null +++ b/BTCPayServer/Components/Icon/Icon.cs @@ -0,0 +1,16 @@ +using Microsoft.AspNetCore.Mvc; + +namespace BTCPayServer.Components.Icon +{ + public class Icon : ViewComponent + { + public IViewComponentResult Invoke(string symbol) + { + var vm = new IconViewModel + { + Symbol = symbol + }; + return View(vm); + } + } +} diff --git a/BTCPayServer/Components/Icon/IconViewModel.cs b/BTCPayServer/Components/Icon/IconViewModel.cs new file mode 100644 index 000000000..c67192fd0 --- /dev/null +++ b/BTCPayServer/Components/Icon/IconViewModel.cs @@ -0,0 +1,7 @@ +namespace BTCPayServer.Components.Icon +{ + public class IconViewModel + { + public string Symbol { get; set; } + } +} diff --git a/BTCPayServer/Components/NotificationsDropdown/Default.cshtml b/BTCPayServer/Components/NotificationsDropdown/Default.cshtml index a5bfd357c..c29e48393 100644 --- a/BTCPayServer/Components/NotificationsDropdown/Default.cshtml +++ b/BTCPayServer/Components/NotificationsDropdown/Default.cshtml @@ -4,30 +4,42 @@ @using BTCPayServer.HostedServices @using Microsoft.AspNetCore.Http.Extensions @model BTCPayServer.Components.NotificationsDropdown.NotificationSummaryViewModel +@addTagHelper *, BundlerMinifier.TagHelpers @if (Model.UnseenCount > 0) {