22 lines
363 B
Plaintext
22 lines
363 B
Plaintext
@inject NotificationManager Notification
|
|
@implements IDisposable
|
|
|
|
<div>
|
|
@foreach (var msg in Notification.Messages)
|
|
{
|
|
<p class="alert alert-success">@msg</p>
|
|
}
|
|
</div>
|
|
|
|
@code {
|
|
protected override void OnInitialized()
|
|
{
|
|
Notification.OnChange += StateHasChanged;
|
|
}
|
|
|
|
public void Dispose()
|
|
{
|
|
Notification.OnChange -= StateHasChanged;
|
|
}
|
|
}
|