wabbajack/Wabbajack.App.Blazor/Components/ModlistItem.razor

31 lines
1.1 KiB
Plaintext
Raw Normal View History

@namespace Wabbajack.App.Blazor.Components
2022-01-11 15:05:48 +00:00
@using Wabbajack.App.Blazor.Store
2022-01-11 16:26:47 +00:00
@using Wabbajack.RateLimiter
2022-01-11 15:05:48 +00:00
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
<div class="item">
<div class="display">
<img src="@Metadata.Links.ImageUri" class="image" alt="@Metadata.Title Image">
<div class="interaction">
2022-01-11 16:26:47 +00:00
@if (_downloadState.Value.CurrentDownloadState == DownloadState.DownloadStateEnum.Downloading)
2022-01-11 15:05:48 +00:00
{
<img src="images/icons/install.svg" class="install hidden" alt="Install">
}
else
{
<img src="images/icons/install.svg" class="install" alt="Install" @onclick="Download">
}
<img src="images/icons/info.svg" class="more" alt="Information">
</div>
</div>
2022-01-11 16:26:47 +00:00
@if (DownloadProgress != Percent.Zero)
{
2022-01-11 16:26:47 +00:00
<ProgressBar Percentage=@DownloadProgress></ProgressBar>
}
2022-01-09 13:33:22 +00:00
<div class="info">
<div class="title">@Metadata.Title</div>
<div class="author">@Metadata.Author</div>
<div class="description">@Metadata.Description</div>
2022-01-09 13:33:22 +00:00
</div>
<div class="tags"></div>
</div>