fix #5364 - add ability to specify preferred Container per Pane
This commit is contained in:
@ -31,6 +31,9 @@
|
||||
[Parameter]
|
||||
public Module ModuleState { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public string ContainerType { get; set; }
|
||||
|
||||
protected override bool ShouldRender()
|
||||
{
|
||||
return PageState?.RenderId == ModuleState?.RenderId;
|
||||
@ -44,6 +47,10 @@
|
||||
protected override void OnParametersSet()
|
||||
{
|
||||
string container = ModuleState.ContainerType;
|
||||
if (!string.IsNullOrEmpty(ContainerType))
|
||||
{
|
||||
container = ContainerType;
|
||||
}
|
||||
if (PageState.ModuleId != -1 && PageState.Route.Action != "" && ModuleState.UseAdminContainer)
|
||||
{
|
||||
container = (!string.IsNullOrEmpty(PageState.Site.AdminContainerType)) ? PageState.Site.AdminContainerType : Constants.DefaultAdminContainer;
|
||||
|
Reference in New Issue
Block a user