Skip to content

Commit

Permalink
Merge pull request #3749 from sbwalker/dev
Browse files Browse the repository at this point in the history
add text to display render mode
  • Loading branch information
sbwalker authored Feb 9, 2024
2 parents c0d36bb + a686bec commit c0f5746
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions Oqtane.Client/UI/ModuleInstance.razor
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 0 additions & 2 deletions Oqtane.Client/UI/RenderModeBoundary.razor
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ else
[Parameter]
public Module ModuleState { get; set; }

RenderFragment DynamicComponent { get; set; }

protected override bool ShouldRender()
{
return PageState?.RenderId == ModuleState?.RenderId;
Expand Down

0 comments on commit c0f5746

Please sign in to comment.