mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-11-23 18:30:22 +00:00
18 lines
898 B
Plaintext
18 lines
898 B
Plaintext
@inherits MSGComponentBase
|
|
|
|
<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)))
|
|
{
|
|
<MudChip T="string" Color="Color.Dark" Text="@fileInfo.Name" tabindex="-1" />
|
|
}
|
|
</MudPaper>
|
|
</MudLink>
|
|
<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>
|
|
</div> |