Initial Commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
@implements IDisposable;
|
||||
|
||||
@inject IEntityDialogService entityDialogService
|
||||
|
||||
@if (entityDialogService.HasDialog())
|
||||
{
|
||||
<EntityDialogComponent></EntityDialogComponent>
|
||||
}
|
||||
|
||||
|
||||
@code {
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
base.OnInitialized();
|
||||
entityDialogService.Subscribe(OnUpdate);
|
||||
}
|
||||
|
||||
void IDisposable.Dispose()
|
||||
{
|
||||
entityDialogService.Unsubscribe(OnUpdate);
|
||||
}
|
||||
|
||||
void OnUpdate()
|
||||
{
|
||||
StateHasChanged();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user