@inject LinkGenerator linkGenerator @inject UserManager UserManager @inject ISettingsRepository SettingsRepository @using BTCPayServer.HostedServices @using BTCPayServer.Views.Notifications @using BTCPayServer.Abstractions.Extensions @using BTCPayServer.Abstractions.Contracts @using BTCPayServer.Client @using BTCPayServer.Services @model BTCPayServer.Components.NotificationsDropdown.NotificationSummaryViewModel @addTagHelper *, BundlerMinifier.TagHelpers @if (Model.UnseenCount > 0) { } else { } @{ var disabled = (await SettingsRepository.GetPolicies()).DisableInstantNotifications; if (!disabled) { var user = await UserManager.GetUserAsync(User); disabled = user?.DisabledNotifications == "all"; } } @if (!disabled) { }