wabbajack/Wabbajack.App.Blazor/Pages/Gallery.razor

25 lines
905 B
Plaintext

@page "/Gallery"
@using Wabbajack.DTOs
@using Wabbajack.RateLimiter
@namespace Wabbajack.App.Blazor.Pages
<div id="content">
@foreach (ModlistMetadata modlist in _listItems)
{
<ModlistItem Metadata=@modlist>
<InteractionIcon Icon="images/icons/install.svg" Label="Install" Size="75px" OnClick="@(() => OnClickDownload(modlist))"/>
<InteractionIcon Icon="images/icons/info.svg" Label="Information" Size="75px" OnClick="@(() => OnClickInformation(modlist))"/>
</ModlistItem>
}
@if (DownloadProgress != Percent.Zero)
{
<BottomBar Image="@DownloadingMetaData.Links.ImageUri" Title="Downloading..." Subtitle="@DownloadingMetaData.Title">
<div style="height:1.5rem;">
<ProgressBar Percentage="@DownloadProgress" Text="@DownloadProgress.Value.ToString()"/>
</div>
</BottomBar>
}
</div>