mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 03:21:37 +00:00
Fixes after merge
This commit is contained in:
parent
863844960a
commit
7c85c5514a
@ -48,7 +48,6 @@ public partial class AttachDocuments : MSGComponentBase
|
|||||||
private PandocAvailabilityService PandocAvailabilityService { get; init; } = null!;
|
private PandocAvailabilityService PandocAvailabilityService { get; init; } = null!;
|
||||||
|
|
||||||
private const Placement TOOLBAR_TOOLTIP_PLACEMENT = Placement.Top;
|
private const Placement TOOLBAR_TOOLTIP_PLACEMENT = Placement.Top;
|
||||||
|
|
||||||
private static readonly string DROP_FILES_HERE_TEXT = TB("Drop files here to attach them.");
|
private static readonly string DROP_FILES_HERE_TEXT = TB("Drop files here to attach them.");
|
||||||
|
|
||||||
private bool isComponentHovered;
|
private bool isComponentHovered;
|
||||||
@ -106,6 +105,7 @@ public partial class AttachDocuments : MSGComponentBase
|
|||||||
if (!pandocState.IsAvailable)
|
if (!pandocState.IsAvailable)
|
||||||
{
|
{
|
||||||
this.Logger.LogWarning("The user cancelled the Pandoc installation or Pandoc is not available. Aborting file drop.");
|
this.Logger.LogWarning("The user cancelled the Pandoc installation or Pandoc is not available. Aborting file drop.");
|
||||||
|
this.isDraggingOver = false;
|
||||||
this.ClearDragClass();
|
this.ClearDragClass();
|
||||||
this.StateHasChanged();
|
this.StateHasChanged();
|
||||||
return;
|
return;
|
||||||
@ -148,7 +148,7 @@ public partial class AttachDocuments : MSGComponentBase
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var selectFiles = await this.RustService.SelectFiles(T("Select a file to attach"));
|
var selectFiles = await this.RustService.SelectFiles(T("Select files to attach"));
|
||||||
if (selectFiles.UserCancelled)
|
if (selectFiles.UserCancelled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user