You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
441 B
28 lines
441 B
@implements IDisposable; |
|
|
|
@inject IEntityDialogService entityDialogService |
|
|
|
@if (entityDialogService.HasDialog()) |
|
{ |
|
<EntityDialogComponent></EntityDialogComponent> |
|
} |
|
|
|
|
|
@code { |
|
|
|
protected override void OnInitialized() |
|
{ |
|
entityDialogService.Subscribe(OnUpdate); |
|
} |
|
|
|
public void Dispose() |
|
{ |
|
entityDialogService.Unsubscribe(OnUpdate); |
|
} |
|
|
|
void OnUpdate() |
|
{ |
|
StateHasChanged(); |
|
} |
|
|
|
} |