diff --git a/app/MindWork AI Studio/Components/AttachDocuments.razor b/app/MindWork AI Studio/Components/AttachDocuments.razor index 383d343f..aa89ebe3 100644 --- a/app/MindWork AI Studio/Components/AttachDocuments.razor +++ b/app/MindWork AI Studio/Components/AttachDocuments.razor @@ -8,7 +8,9 @@ @foreach (var fileInfo in this.DocumentPaths.Select(file => new FileInfo(file))) { - + + + } diff --git a/app/MindWork AI Studio/Components/AttachDocuments.razor.cs b/app/MindWork AI Studio/Components/AttachDocuments.razor.cs index b553ec35..3f377bb5 100644 --- a/app/MindWork AI Studio/Components/AttachDocuments.razor.cs +++ b/app/MindWork AI Studio/Components/AttachDocuments.razor.cs @@ -151,4 +151,23 @@ public partial class AttachDocuments : MSGComponentBase this.ClearDragClass(); this.StateHasChanged(); } + + private async Task RemoveDocumentPathFromDocumentPaths(FileInfo file) + { + this.DocumentPaths.Remove(file.ToString()); + + await this.DocumentPathsChanged.InvokeAsync(this.DocumentPaths); + await this.OnChange(this.DocumentPaths); + } + + /// + /// The user might want to check what the Pandoc integration actually extracts from his file and therefore gives the LLM as input. + /// + /// The file to check. + private void InvestigateFile(FileInfo file) + { + # warning Implement Investigation of file + this.Logger.LogDebug("Investigate"); + return; + } } \ No newline at end of file