2025-05-02 21:09:50 +00:00
|
|
|
@inherits MSGComponentBase
|
2026-07-06 18:27:25 +00:00
|
|
|
|
|
|
|
|
@if (this.EnableDragDrop)
|
|
|
|
|
{
|
|
|
|
|
<div @onmouseenter="@this.OnMouseEnter" @onmouseleave="@this.OnMouseLeave">
|
|
|
|
|
<MudPaper Outlined="true" Class="@this.dragClass">
|
|
|
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" StretchItems="StretchItems.None" Wrap="Wrap.Wrap">
|
2026-07-15 10:53:30 +00:00
|
|
|
<MudButton StartIcon="@Icons.Material.Filled.Description" OnClick="@(async () => await this.SelectFile())" Variant="Variant.Filled" Disabled="@this.IsUnavailable">
|
2026-07-06 18:27:25 +00:00
|
|
|
@this.ButtonText
|
|
|
|
|
</MudButton>
|
2026-07-15 10:53:30 +00:00
|
|
|
@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>
|
|
|
|
|
}
|
2026-07-06 18:27:25 +00:00
|
|
|
</MudStack>
|
|
|
|
|
</MudPaper>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2026-07-15 10:53:30 +00:00
|
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" StretchItems="StretchItems.None" Wrap="Wrap.Wrap" Class="mb-3">
|
|
|
|
|
<MudButton StartIcon="@Icons.Material.Filled.Description" OnClick="@(async () => await this.SelectFile())" Variant="Variant.Filled" Disabled="@this.IsUnavailable">
|
|
|
|
|
@this.ButtonText
|
|
|
|
|
</MudButton>
|
|
|
|
|
<MediaTranscriptionStatus Owner="@this.EffectiveImportOwner" TargetId="@this.EffectiveMediaImportTarget.TargetId" Compact="true"/>
|
|
|
|
|
</MudStack>
|
2026-07-06 18:27:25 +00:00
|
|
|
}
|