mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-07 20:29:40 +00:00
Attach files dropped onto the list of attachments
This commit is contained in:
3 files changed
+107
-3
No files matched your search
@@ -275,7 +275,7 @@ public partial class AttachDocuments : MSGComponentBase
|
||||
return;
|
||||
|
||||
var previousAttachments = this.DocumentPaths.ToHashSet();
|
||||
this.DocumentPaths = await ReviewAttachmentsDialog.OpenDialogAsync(this.DialogService, this.DocumentPaths);
|
||||
this.DocumentPaths = await ReviewAttachmentsDialog.OpenDialogAsync(this.DialogService, this.DocumentPaths, this.AttachDroppedPathsAsync, () => this.IsUnavailable);
|
||||
foreach (var removedAttachment in previousAttachments.Except(this.DocumentPaths))
|
||||
ManagedTranscriptAttachment.TryDeleteOwnedFile(removedAttachment);
|
||||
|
||||
|
||||
Reference in new issue
Block a user