diff --git a/app/MindWork AI Studio/Components/ReadFileContent.razor b/app/MindWork AI Studio/Components/ReadFileContent.razor index f9e33fc8..05a63722 100644 --- a/app/MindWork AI Studio/Components/ReadFileContent.razor +++ b/app/MindWork AI Studio/Components/ReadFileContent.razor @@ -1,4 +1,11 @@ @inherits MSGComponentBase - @T("Use file content as input") + @if (string.IsNullOrWhiteSpace(this.Text)) + { + @T("Use file content as input") + } + else + { + @this.Text + } \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/ReadFileContent.razor.cs b/app/MindWork AI Studio/Components/ReadFileContent.razor.cs index 17814e16..b5f00fd2 100644 --- a/app/MindWork AI Studio/Components/ReadFileContent.razor.cs +++ b/app/MindWork AI Studio/Components/ReadFileContent.razor.cs @@ -7,6 +7,9 @@ namespace AIStudio.Components; public partial class ReadFileContent : MSGComponentBase { + [Parameter] + public string Text { get; set; } = string.Empty; + [Parameter] public string FileContent { get; set; } = string.Empty;