From abffc4aed3a8544017835a385a6f572a73ba8ecd Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 14 Jul 2026 19:02:23 +0200 Subject: [PATCH] Improved the media pipeline status display --- .../Components/ReadFileContent.razor | 14 ++++++++++---- .../Components/ReadFileContent.razor.cs | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/app/MindWork AI Studio/Components/ReadFileContent.razor b/app/MindWork AI Studio/Components/ReadFileContent.razor index 9ab4f412..c06fd5b5 100644 --- a/app/MindWork AI Studio/Components/ReadFileContent.razor +++ b/app/MindWork AI Studio/Components/ReadFileContent.razor @@ -8,10 +8,16 @@ @this.ButtonText - - @T("Drop one file here to load its content.") - - + @if (this.IsCurrentTargetBusy) + { + + } + else + { + + @T("Drop one file here to load its content.") + + } diff --git a/app/MindWork AI Studio/Components/ReadFileContent.razor.cs b/app/MindWork AI Studio/Components/ReadFileContent.razor.cs index 5d412f57..fadb01c8 100644 --- a/app/MindWork AI Studio/Components/ReadFileContent.razor.cs +++ b/app/MindWork AI Studio/Components/ReadFileContent.razor.cs @@ -74,6 +74,8 @@ public partial class ReadFileContent : MSGComponentBase private string dragClass = DEFAULT_DRAG_CLASS; private uint numDropAreasAboveThis; private bool isComponentHovered; + private bool IsCurrentTargetBusy => this.MediaTranscriptionService.GetSnapshot(this.EffectiveImportOwner) is { IsBusy: true } snapshot + && snapshot.Target == this.EffectiveMediaImportTarget; private bool IsUnavailable => this.Disabled || this.MediaTranscriptionService.IsBusy(this.EffectiveImportOwner); #region Overrides of MSGComponentBase