first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user