remove div wrapper in body in Static render mode
This commit is contained in:
parent
babd351151
commit
7d7ea4c34b
|
@ -15,6 +15,14 @@
|
|||
else
|
||||
{
|
||||
@if (string.IsNullOrEmpty(_installation.Message))
|
||||
{
|
||||
if (PageState.RenderMode == RenderModes.Static)
|
||||
{
|
||||
<CascadingValue Value="@_pageState">
|
||||
<SiteRouter RenderMode="@RenderMode" Runtime="@Runtime" OnStateChange="@ChangeState" />
|
||||
</CascadingValue>
|
||||
}
|
||||
else
|
||||
{
|
||||
<div style="@_display">
|
||||
<CascadingValue Value="@_pageState">
|
||||
|
@ -22,6 +30,7 @@
|
|||
</CascadingValue>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="app-alert">
|
||||
|
@ -54,7 +63,7 @@
|
|||
HttpContext HttpContext { get; set; }
|
||||
|
||||
private bool _initialized = false;
|
||||
private string _display = "";
|
||||
private string _display = "display: none;";
|
||||
private Installation _installation = new Installation { Success = false, Message = "" };
|
||||
|
||||
private PageState _pageState { get; set; }
|
||||
|
@ -66,11 +75,6 @@
|
|||
_pageState = PageState;
|
||||
}
|
||||
|
||||
if (RenderMode == RenderModes.Interactive)
|
||||
{
|
||||
_display = "display: none;";
|
||||
}
|
||||
|
||||
SiteState.AntiForgeryToken = AntiForgeryToken;
|
||||
SiteState.AuthorizationToken = AuthorizationToken;
|
||||
SiteState.RemoteIPAddress = (_pageState != null) ? _pageState.RemoteIPAddress : "";
|
||||
|
|
Loading…
Reference in New Issue
Block a user