17 lines
400 B
C#
17 lines
400 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace Webshop.App.Components.Widgets
|
|
{
|
|
public partial class InboxWidget
|
|
{
|
|
[Inject]
|
|
public ApplicationState? ApplicationState { get; set; }
|
|
public int MessageCount { get; set; } = 0;
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
MessageCount = ApplicationState.NumberOfMessages;
|
|
}
|
|
}
|
|
}
|