2025-10-27 14:17:20 +00:00
|
|
|
@inherits MSGComponentBase
|
|
|
|
|
|
2025-10-28 08:41:07 +00:00
|
|
|
<div @onmouseenter="@this.OnMouseEnter" @onmouseleave="@this.OnMouseLeave">
|
|
|
|
|
<MudLink OnClick="@(() => this.AddFilesManually())" Style="text-decoration: none;">
|
|
|
|
|
<MudPaper Height="20em" Outlined="true" Class="@this.dragClass" Style="overflow-y: auto;">
|
|
|
|
|
<MudText Typo="Typo.h6">
|
|
|
|
|
@T("Drag and drop files here or click to attach documents.")
|
|
|
|
|
</MudText>
|
|
|
|
|
@foreach (var fileInfo in this.DocumentPaths.Select(file => new FileInfo(file)))
|
|
|
|
|
{
|
2025-11-17 16:26:22 +00:00
|
|
|
<MudBadge Origin="Origin.TopCenter" Icon="@Icons.Material.Filled.Search" Color="Color.Primary" Overlap="true" Bordered="true" OnClick="@(() => this.InvestigateFile(@fileInfo))">
|
|
|
|
|
<MudChip T="string" Color="Color.Dark" Text="@fileInfo.Name" tabindex="-1" Icon="@Icons.Material.Filled.Search" OnClick="@(() => this.InvestigateFile(@fileInfo))" OnClose="@(() => this.RemoveDocumentPathFromDocumentPaths(@fileInfo))"/>
|
|
|
|
|
</MudBadge>
|
2025-10-28 08:41:07 +00:00
|
|
|
}
|
|
|
|
|
</MudPaper>
|
|
|
|
|
</MudLink>
|
2025-10-28 08:41:45 +00:00
|
|
|
<MudButton OnClick="@(async () => await this.ClearAllFiles())" Variant="Variant.Filled" Color="Color.Info" Class="mt-2" StartIcon="@Icons.Material.Filled.Delete">
|
|
|
|
|
@T("Clear file list")
|
|
|
|
|
</MudButton>
|
2025-10-28 08:41:07 +00:00
|
|
|
</div>
|