mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-13 21:01:37 +00:00
52 lines
1.7 KiB
Plaintext
52 lines
1.7 KiB
Plaintext
@inherits MSGComponentBase
|
|
|
|
|
|
<MudDialog>
|
|
<DialogContent>
|
|
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
|
|
@T("Test how we load your file. Check the content before further processing.")
|
|
</MudJustifiedText>
|
|
|
|
@if (FilePath == string.Empty)
|
|
{
|
|
<ReadFileContent Text="@T("Load file")" @bind-FileContent="@this.FileContent"/>
|
|
}
|
|
else
|
|
{
|
|
<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"
|
|
/>
|
|
}
|
|
|
|
<MudTextField
|
|
T="string"
|
|
@bind-Text="@this.FileContent"
|
|
AdornmentIcon="@Icons.Material.Filled.Article"
|
|
Adornment="Adornment.Start"
|
|
Immediate="@true"
|
|
Label="@T("Loaded Content")"
|
|
Variant="Variant.Outlined"
|
|
Lines="6"
|
|
AutoGrow="@true"
|
|
MaxLines="25"
|
|
Class="mt-10"
|
|
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.")"/>
|
|
|
|
</DialogContent>
|
|
<DialogActions>
|
|
<MudButton OnClick="@this.Close" Variant="Variant.Filled">
|
|
@T("Close")
|
|
</MudButton>
|
|
</DialogActions>
|
|
</MudDialog> |