improved rendering optimization

This commit is contained in:
sbwalker
2024-01-05 11:49:57 -05:00
parent 3dc28c7291
commit 02c22c1894
9 changed files with 30 additions and 14 deletions

View File

@ -23,6 +23,7 @@ namespace Oqtane.UI
public string RemoteIPAddress { get; set; }
public string ReturnUrl { get; set; }
public bool IsInternalNavigation { get; set; }
public Guid RenderId { get; set; }
public List<Page> Pages
{
@ -36,12 +37,5 @@ namespace Oqtane.UI
{
get { return Site.Languages; }
}
// determines if the PageState matches the ModuleState for component rendering purposes
public bool RenderModuleInstance(Module ModuleState)
{
return Page.PageId == ModuleState.PageId && (ModuleId == -1 || ModuleId == ModuleState.ModuleId) && Action == ModuleState.Action;
}
}
}