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.
24 lines
461 B
24 lines
461 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; |
|
} |
|
|
|
} |