Some checks failed
LANCommander Release / prep (push) Failing after 32s
LANCommander Release / build_server_linux_arm64 (push) Has been skipped
LANCommander Release / build_server_linux_x64 (push) Has been skipped
LANCommander Release / build_server_osx_arm64 (push) Has been skipped
LANCommander Release / build_server_osx_x64 (push) Has been skipped
LANCommander Release / build_server_win_arm64 (push) Has been skipped
LANCommander Release / build_server_win_x64 (push) Has been skipped
LANCommander Release / build_launcher_linux_arm64 (push) Has been skipped
LANCommander Release / build_launcher_linux_x64 (push) Has been skipped
LANCommander Release / build_launcher_osx_arm64 (push) Has been skipped
LANCommander Release / build_launcher_osx_x64 (push) Has been skipped
LANCommander Release / build_launcher_win_arm64 (push) Has been skipped
LANCommander Release / build_launcher_win_x64 (push) Has been skipped
LANCommander Release / build_release (push) Has been skipped
LANCommander SDK Release / prep (push) Failing after 13s
LANCommander SDK Release / publish (push) Has been skipped
71 lines
2.3 KiB
Text
71 lines
2.3 KiB
Text
@using LANCommander.Launcher.Models
|
|
@using System.Diagnostics
|
|
@inject SDK.Client Client
|
|
@inject InstallService InstallService
|
|
@inject GameService GameService
|
|
@inject NavigationManager NavigationManager
|
|
|
|
<Flex Justify="FlexJustify.Center" Align="FlexAlign.Center" Gap="FlexGap.Small" Class="footer">
|
|
<div style="flex: 1;">
|
|
@if (NavigationManager.Uri.Contains("/Depot"))
|
|
{
|
|
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.Hdd" OnClick="@(() => NavigationManager.NavigateTo("/"))">Library</Button>
|
|
}
|
|
else
|
|
{
|
|
if (Client.Settings.EnableUserLibraries)
|
|
{
|
|
<ConnectionStateView>
|
|
<Online>
|
|
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.AppstoreAdd" OnClick="@(() => NavigationManager.NavigateTo("/Depot"))">Depot</Button>
|
|
</Online>
|
|
<Offline>
|
|
<Tooltip Title="You are currently offline" Placement="Placement.TopLeft">
|
|
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.AppstoreAdd" Disabled>Depot</Button>
|
|
</Tooltip>
|
|
</Offline>
|
|
</ConnectionStateView>
|
|
}
|
|
}
|
|
</div>
|
|
|
|
@if (InstallService.Queue.Any(qi => qi.State))
|
|
{
|
|
<div class="downloader" @onclick="() => ShowDownloadQueue()" style="flex-shrink: 0;">
|
|
<CurrentDownloadItem ShowIcon="true"/>
|
|
</div>
|
|
}
|
|
else
|
|
{
|
|
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.Download" OnClick="() => ShowDownloadQueue()">Downloads</Button>
|
|
}
|
|
|
|
<div style="flex: 1; text-align: right;">
|
|
<Tooltip Title="Coming soon!" Placement="Placement.TopRight">
|
|
<Button Type="@ButtonType.Text" Icon="@IconType.Outline.Team" Disabled>Friends</Button>
|
|
</Tooltip>
|
|
</div>
|
|
</Flex>
|
|
|
|
<DownloadQueue @ref="DownloadQueue" />
|
|
|
|
@code {
|
|
[CascadingParameter] public bool Connected { get; set; }
|
|
|
|
bool DownloadQueueVisible = false;
|
|
|
|
DownloadQueue DownloadQueue;
|
|
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
InstallService.OnQueueChanged += async () =>
|
|
{
|
|
await InvokeAsync(StateHasChanged);
|
|
};
|
|
}
|
|
|
|
async Task ShowDownloadQueue()
|
|
{
|
|
await DownloadQueue.Show();
|
|
}
|
|
}
|