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.
21 lines
449 B
21 lines
449 B
@if (isDisplayable) |
|
{ |
|
@ChildContent |
|
} |
|
|
|
@code { |
|
|
|
[Parameter] public RenderFragment ChildContent { get; set; } = default!; |
|
|
|
[Parameter] public WebDeploymentType DeploymentType { get; set; } |
|
|
|
[Inject] public NavigationManager MyNavigationManager { get; set; } = default!; |
|
|
|
bool isDisplayable; |
|
|
|
protected override void OnInitialized() |
|
{ |
|
isDisplayable = DeploymentType == WebDeploymentModel.DeploymentType; |
|
} |
|
|
|
} |