2025-05-02 21:09:50 +00:00
|
|
|
@inherits MSGComponentBase
|
2026-07-06 18:27:25 +00:00
|
|
|
|
|
|
|
|
@if (this.EnableDragDrop)
|
|
|
|
|
{
|
2026-09-10 13:28:08 +00:00
|
|
|
<PathDropZone IdPrefix="read-file-content"
|
|
|
|
|
CatchAllDocuments="@this.CatchAllDocuments"
|
|
|
|
|
Disabled="@(() => this.IsUnavailable)"
|
|
|
|
|
OnPathsDropped="@this.LoadFirstValidFile">
|
|
|
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" StretchItems="StretchItems.None" Wrap="Wrap.Wrap">
|
|
|
|
|
@if (this.ShowAttachedDocumentState && this.hasLoadedFileContent)
|
|
|
|
|
{
|
|
|
|
|
<MudTooltip Text="@this.FileLoadedTooltip()">
|
|
|
|
|
<MudBadge Icon="@Icons.Material.Filled.Check" Color="Color.Success" Overlap="true">
|
|
|
|
|
<MudButton StartIcon="@Icons.Material.Filled.Description" OnClick="@(async () => await this.SelectFile())" Variant="Variant.Filled" Disabled="@this.IsUnavailable">
|
|
|
|
|
@this.ButtonText
|
|
|
|
|
</MudButton>
|
|
|
|
|
</MudBadge>
|
|
|
|
|
</MudTooltip>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<MudButton StartIcon="@Icons.Material.Filled.Description" OnClick="@(async () => await this.SelectFile())" Variant="Variant.Filled" Disabled="@this.IsUnavailable">
|
|
|
|
|
@this.ButtonText
|
|
|
|
|
</MudButton>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@if (this.IsCurrentTargetBusy)
|
|
|
|
|
{
|
|
|
|
|
<MediaTranscriptionStatus Owner="@this.EffectiveImportOwner" TargetId="@this.EffectiveMediaImportTarget.TargetId" Compact="true"/>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<MudText Typo="Typo.body2">
|
|
|
|
|
@T("Drop one file here to load its content.")
|
|
|
|
|
</MudText>
|
|
|
|
|
}
|
|
|
|
|
</MudStack>
|
|
|
|
|
</PathDropZone>
|
2026-07-06 18:27:25 +00:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2026-07-15 10:53:30 +00:00
|
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" StretchItems="StretchItems.None" Wrap="Wrap.Wrap" Class="mb-3">
|
2026-07-21 08:05:43 +00:00
|
|
|
@if (this.ShowAttachedDocumentState && this.hasLoadedFileContent)
|
|
|
|
|
{
|
|
|
|
|
<MudTooltip Text="@this.FileLoadedTooltip()">
|
|
|
|
|
<MudBadge Icon="@Icons.Material.Filled.Check" Color="Color.Success" Overlap="true">
|
|
|
|
|
<MudButton StartIcon="@Icons.Material.Filled.Description" OnClick="@(async () => await this.SelectFile())" Variant="Variant.Filled" Disabled="@this.IsUnavailable">
|
|
|
|
|
@this.ButtonText
|
|
|
|
|
</MudButton>
|
|
|
|
|
</MudBadge>
|
|
|
|
|
</MudTooltip>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
<MudButton StartIcon="@Icons.Material.Filled.Description" OnClick="@(async () => await this.SelectFile())" Variant="Variant.Filled" Disabled="@this.IsUnavailable">
|
|
|
|
|
@this.ButtonText
|
|
|
|
|
</MudButton>
|
|
|
|
|
}
|
|
|
|
|
|
2026-07-15 10:53:30 +00:00
|
|
|
<MediaTranscriptionStatus Owner="@this.EffectiveImportOwner" TargetId="@this.EffectiveMediaImportTarget.TargetId" Compact="true"/>
|
|
|
|
|
</MudStack>
|
2026-07-06 18:27:25 +00:00
|
|
|
}
|