diff --git a/Oqtane.Client/App.razor b/Oqtane.Client/App.razor index ccb64327..6d0a3bf5 100644 --- a/Oqtane.Client/App.razor +++ b/Oqtane.Client/App.razor @@ -4,31 +4,40 @@ @if (_initialized) { - @if (!_installation.Success) - { - - } - else - { - @if (string.IsNullOrEmpty(_installation.Message)) +
+ @if (!_installation.Success) { - - - - - + } else { -
- @_installation.Message -
+ @if (string.IsNullOrEmpty(_installation.Message)) + { + + + + + + } + else + { +
+ @_installation.Message +
+ } } - } +
} @code { + [Parameter] + public string Runtime { get; set; } + + [Parameter] + public string RenderMode { get; set; } + private bool _initialized = false; + private string _display = "display: none;"; private Installation _installation = new Installation { Success = false, Message = "" }; private PageState PageState { get; set; } @@ -53,6 +62,8 @@ { var interop = new Interop(JSRuntime); SiteState.AntiForgeryToken = await interop.GetElementByName(Constants.RequestVerificationToken); + _display = ""; + StateHasChanged(); } } diff --git a/Oqtane.Server/Pages/_Host.cshtml b/Oqtane.Server/Pages/_Host.cshtml index cfd3b78c..10c13f5b 100644 --- a/Oqtane.Server/Pages/_Host.cshtml +++ b/Oqtane.Server/Pages/_Host.cshtml @@ -20,7 +20,7 @@ @(Html.AntiForgeryToken()) - +