Merge pull request #3749 from sbwalker/dev

add text to display render mode
This commit is contained in:
Shaun Walker 2024-02-09 08:56:41 -05:00 committed by GitHub
commit c0f5746d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,7 @@
@namespace Oqtane.UI
@inject SiteState SiteState
<div>@ModuleState.RenderMode</div>
@if (PageState.Site.RenderMode == RenderModes.Interactive || ModuleState.RenderMode == RenderModes.Static)
{
<RenderModeBoundary ModuleState="@ModuleState" PageState="@PageState" SiteState="@SiteState"></RenderModeBoundary>

View File

@ -54,8 +54,6 @@ else
[Parameter]
public Module ModuleState { get; set; }
RenderFragment DynamicComponent { get; set; }
protected override bool ShouldRender()
{
return PageState?.RenderId == ModuleState?.RenderId;