Made parameters public for Preview8

This commit is contained in:
Shaun Walker
2019-08-15 12:18:09 -04:00
parent 9dbd44b112
commit 58b27d172d
7 changed files with 32 additions and 22 deletions

View File

@ -3,20 +3,23 @@
@using Oqtane.Services
@inject IInstallationService InstallationService
@if (!Installed)
{
<Installer Installed="@Installed" />
}
else
{
<CascadingAuthenticationState>
<CascadingValue Value="@PageState">
<SiteRouter OnStateChange="@ChangeState" />
</CascadingValue>
</CascadingAuthenticationState>
@if (Initialized)
@if (!Installed)
{
<Installer Installed="@Installed" />
}
else
{
<CascadingAuthenticationState>
<CascadingValue Value="@PageState">
<SiteRouter OnStateChange="@ChangeState" />
</CascadingValue>
</CascadingAuthenticationState>
}
}
@code {
private bool Initialized = false;
private bool Installed = false;
private PageState PageState { get; set; }
@ -26,6 +29,11 @@ else
Installed = response.Success;
}
protected override void OnAfterRender()
{
Initialized = true;
}
private void ChangeState(PageState pagestate)
{
PageState = pagestate;