2025-11-24 11:37:18 +00:00
@inherits MSGComponentBase
<MudDialog>
<DialogContent>
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
2025-12-04 14:33:20 +00:00
@T("Test how we load your file. Check the content before further processing.")
2025-11-24 11:37:18 +00:00
</MudJustifiedText>
2025-12-04 13:06:32 +00:00
@if (FilePath == string.Empty)
{
<ReadFileContent Text="@T("Load file")" @bind-FileContent="@this.FileContent"/>
}
else
{
2025-12-04 14:33:20 +00:00
<MudTextField
T="string"
@bind-Text="@this.FilePath"
AdornmentIcon="@Icons.Material.Filled.FileOpen"
Adornment="Adornment.Start"
Immediate="@true"
Label="@T("File Path")"
Variant="Variant.Outlined"
Lines="1"
MaxLines="3"
Class="mt-10"
ReadOnly="true"
/>
2025-12-04 13:06:32 +00:00
}
2025-11-24 11:37:18 +00:00
<MudTextField
T="string"
2025-12-04 13:06:32 +00:00
@bind-Text="@this.FileContent"
2025-11-24 11:37:18 +00:00
AdornmentIcon="@Icons.Material.Filled.Article"
Adornment="Adornment.Start"
Immediate="@true"
2025-12-04 14:33:20 +00:00
Label="@T("Loaded Content")"
2025-11-24 11:37:18 +00:00
Variant="Variant.Outlined"
Lines="6"
AutoGrow="@true"
MaxLines="25"
Class="mt-10"
2025-12-04 14:33:20 +00:00
ReadOnly="true"
HelperText="@T("This is the content we loaded from your file — including headings, lists, and formatting. Use this to verify your file loads as expected.")"/>
2025-11-24 11:37:18 +00:00
</DialogContent>
<DialogActions>
<MudButton OnClick="@this.Cancel" Variant="Variant.Filled">
@T("Cancel")
</MudButton>
</DialogActions>
</MudDialog>