Merge pull request #196 from Moonlight-Panel/SmallBugFixes
Small bug fixes
This commit is contained in:
commit
a894707536
3 changed files with 17 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue