Merge pull request #215 from Moonlight-Panel/EnhanceInstallConsole

Enhanced install console
This commit is contained in:
Marcel Baumgartner
2023-07-08 02:50:56 +02:00
committed by GitHub

View File

@@ -34,34 +34,17 @@
{ {
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">
<span class="me-2">
<TL>Server installation is currently running</TL> <TL>Server installation is currently running</TL>
</span>
</div>
</div> </div>
<div class="rounded bg-black p-3">
<Terminal @ref="InstallConsole"></Terminal> <Terminal @ref="InstallConsole"></Terminal>
</div> </div>
</div> </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>
<Terminal @ref="InstallConsole"></Terminal>
</div>
</div> </div>
} }
else if (CurrentServer.IsArchived) else if (CurrentServer.IsArchived)