Fan website of IMMORTAL: Gates of Pyre.
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
481 B

@using Model.Website.Enums
@using Model.Website
@if (isDisplayable) {
@ChildContent
}
@code {
[Parameter]
public RenderFragment ChildContent { get; set; }
[Parameter]
public WebDeploymentType DeploymentType { get; set; }
[Inject]
public NavigationManager MyNavigationManager { get; set; }
bool isDisplayable;
protected override void OnInitialized() {
isDisplayable = DeploymentType == WebDeploymentModel.DeploymentType;
}
}