diff --git a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor index 3602adf0..971e5892 100644 --- a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor +++ b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor @@ -46,19 +46,24 @@ - - - + + + + + + + + + - } else { - +
@@ -70,13 +75,17 @@
- - - + + + + + + +
} } diff --git a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs index 21af5418..aa12f128 100644 --- a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs @@ -46,4 +46,18 @@ public partial class ReviewAttachmentsDialog : MSGComponentBase this.StateHasChanged(); } } + + /// + /// The user might want to check what we actually extract from his file and therefore give the LLM as an input. + /// + /// The file to check. + private async Task InvestigateFile(FileAttachment fileAttachment) + { + var dialogParameters = new DialogParameters + { + { x => x.Document, fileAttachment }, + }; + + await this.DialogService.ShowAsync(T("Document Preview"), dialogParameters, DialogOptions.FULLSCREEN); + } } \ No newline at end of file