Installer improvements for client-side Blazor
This commit is contained in:
parent
58b27d172d
commit
9cda80f7e9
|
@ -4,9 +4,10 @@
|
||||||
@inject IInstallationService InstallationService
|
@inject IInstallationService InstallationService
|
||||||
|
|
||||||
@if (Initialized)
|
@if (Initialized)
|
||||||
|
{
|
||||||
@if (!Installed)
|
@if (!Installed)
|
||||||
{
|
{
|
||||||
<Installer Installed="@Installed" />
|
<Installer />
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -23,14 +24,10 @@
|
||||||
private bool Installed = false;
|
private bool Installed = false;
|
||||||
private PageState PageState { get; set; }
|
private PageState PageState { get; set; }
|
||||||
|
|
||||||
protected override async Task OnInitializedAsync()
|
protected override async Task OnParametersSetAsync()
|
||||||
{
|
{
|
||||||
var response = await InstallationService.IsInstalled();
|
var response = await InstallationService.IsInstalled();
|
||||||
Installed = response.Success;
|
Installed = response.Success;
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnAfterRender()
|
|
||||||
{
|
|
||||||
Initialized = true;
|
Initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,7 @@
|
||||||
@inject IInstallationService InstallationService
|
@inject IInstallationService InstallationService
|
||||||
@inject IUserService UserService
|
@inject IUserService UserService
|
||||||
|
|
||||||
@if (!Installed)
|
<div class="container">
|
||||||
{
|
|
||||||
<div class="container">
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="mx-auto text-center">
|
<div class="mx-auto text-center">
|
||||||
<img src="oqtane.png" />
|
<img src="oqtane.png" />
|
||||||
|
@ -109,13 +107,9 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="loading" style="@LoadingDisplay"></div>
|
<div class="loading" style="@LoadingDisplay"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
}
|
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
[Parameter]
|
|
||||||
public bool Installed { get; set; }
|
|
||||||
|
|
||||||
private string DatabaseType = "LocalDB";
|
private string DatabaseType = "LocalDB";
|
||||||
private string ServerName = "(LocalDb)\\MSSQLLocalDB";
|
private string ServerName = "(LocalDb)\\MSSQLLocalDB";
|
||||||
private string DatabaseName = "Oqtane-" + DateTime.Now.ToString("yyyyMMddHHmm");
|
private string DatabaseName = "Oqtane-" + DateTime.Now.ToString("yyyyMMddHHmm");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user