Merge pull request #196 from Moonlight-Panel/SmallBugFixes

Small bug fixes
This commit is contained in:
Marcel Baumgartner 2023-06-26 18:05:58 +02:00 committed by GitHub
commit a894707536
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 7 deletions

View file

@ -285,7 +285,8 @@ public class ServerService
Allocations = freeAllocations.ToList(),
Backups = new(),
OverrideStartup = "",
DockerImageIndex = image.DockerImages.FindIndex(x => x.Default)
DockerImageIndex = image.DockerImages.FindIndex(x => x.Default),
Installing = true
};
foreach (var imageVariable in image.Variables)

View file

@ -64,11 +64,20 @@
protected override async Task OnParametersSetAsync()
{
Uri uri = new Uri(await Access.GetLaunchUrl());
Host = uri.Host;
Port = uri.Port;
Username = uri.UserInfo.Split(':')[0];
try
{
Uri uri = new Uri(await Access.GetLaunchUrl());
Host = uri.Host;
Port = uri.Port;
Username = uri.UserInfo.Split(':')[0];
}
catch (NotImplementedException)
{
Host = "N/A";
Port = -1;
Username = "N/A";
}
}
public async Task Show()

View file

@ -38,7 +38,7 @@
<div class="app-sidebar-footer flex-column-auto pt-2 pb-6 px-6" id="kt_app_sidebar_footer">
<a href="/support" class="btn btn-flex flex-center btn-custom btn-primary overflow-hidden text-nowrap px-0 h-40px w-100 btn-label">
<TL>Open support</TL>
<i class="bx bx-sm bx-support"></i>
</a>
</div>
</div>