Enhanced install console

This commit is contained in:
Marcel Baumgartner
2023-07-08 02:50:13 +02:00
parent 8be93bc53c
commit c866e89b72

View File

@@ -26,7 +26,7 @@
<LazyLoader Load="LoadData"> <LazyLoader Load="LoadData">
@if (CurrentServer == null) @if (CurrentServer == null)
{ {
<NotFoundAlert /> <NotFoundAlert/>
} }
else else
{ {
@@ -34,33 +34,16 @@
{ {
if (Console.ConsoleState == ConsoleState.Connected) if (Console.ConsoleState == ConsoleState.Connected)
{ {
if (Console.ServerState == ServerState.Installing) if (Console.ServerState == ServerState.Installing || CurrentServer.Installing)
{ {
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="mb-10"> <div class="fs-2hx fw-bold text-gray-800 text-center mb-5">
<div class="fs-2hx fw-bold text-gray-800 text-center mb-13"> <TL>Server installation is currently running</TL>
<span class="me-2">
<TL>Server installation is currently running</TL>
</span>
</div>
</div> </div>
<Terminal @ref="InstallConsole"></Terminal> <div class="rounded bg-black p-3">
</div> <Terminal @ref="InstallConsole"></Terminal>
</div>
}
else if (CurrentServer.Installing)
{
<div class="card">
<div class="card-body">
<div class="mb-10">
<div class="fs-2hx fw-bold text-gray-800 text-center mb-13">
<span class="me-2">
<TL>Server installation is currently running</TL>
</span>
</div>
</div> </div>
<Terminal @ref="InstallConsole"></Terminal>
</div> </div>
</div> </div>
} }
@@ -104,7 +87,7 @@
</Route> </Route>
<Route Path="/backups"> <Route Path="/backups">
<ServerNavigation Index="2"> <ServerNavigation Index="2">
<ServerBackups/> <ServerBackups/>
</ServerNavigation> </ServerNavigation>
</Route> </Route>
<Route Path="/network"> <Route Path="/network">