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
3 changed files with 17 additions and 7 deletions

View File

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

View File

@@ -64,11 +64,20 @@
protected override async Task OnParametersSetAsync() protected override async Task OnParametersSetAsync()
{ {
Uri uri = new Uri(await Access.GetLaunchUrl()); try
{
Host = uri.Host; Uri uri = new Uri(await Access.GetLaunchUrl());
Port = uri.Port;
Username = uri.UserInfo.Split(':')[0]; 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() 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"> <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"> <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> </a>
</div> </div>
</div> </div>