From fe26495cd60565a2df38324137f13e8517ef5b68 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Peer=20Sch=C3=BCtt?=
<20603780+peerschuett@users.noreply.github.com>
Date: Mon, 17 Nov 2025 17:26:22 +0100
Subject: [PATCH] Documents can now be removed individually
---
.../Components/AttachDocuments.razor | 4 +++-
.../Components/AttachDocuments.razor.cs | 19 +++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
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