mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 00:57:59 +00:00
Grant the default drop target only to a lone zone
This commit is contained in:
5 files changed
+44
-2
No files matched your search
@@ -153,7 +153,7 @@ else
|
||||
{
|
||||
var fileState = this.assistantState.FileContent[fileContent.Name];
|
||||
<div class="@fileContent.Class" style="@GetOptionalStyle(fileContent.Style)">
|
||||
<ReadFileContent @bind-FileContent="@fileState.Content" MediaImportTargetId="@fileContent.Name" EnableDragDrop="true" CatchAllDocuments="true" ShowAttachedDocumentState="@fileContent.ShowAttachedDocumentState" />
|
||||
<ReadFileContent @bind-FileContent="@fileState.Content" MediaImportTargetId="@fileContent.Name" EnableDragDrop="true" CatchAllDocuments="@this.HasSingleDropZone" ShowAttachedDocumentState="@fileContent.ShowAttachedDocumentState" />
|
||||
</div>
|
||||
}
|
||||
break;
|
||||
@@ -170,7 +170,7 @@ else
|
||||
<div class="px-4">
|
||||
<AttachDocuments Name="@fileAttachment.Name"
|
||||
@bind-DocumentPaths="@fileState.DocumentPaths"
|
||||
CatchAllDocuments="@fileAttachment.CatchAllDocuments"
|
||||
CatchAllDocuments="@(this.HasSingleDropZone && fileAttachment.CatchAllDocuments)"
|
||||
UseSmallForm="@fileAttachment.UseSmallForm"
|
||||
Provider="@this.ProviderSettings"/>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user