diff --git a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor index 612491cd..5bde0562 100644 --- a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor +++ b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor @@ -21,54 +21,69 @@ } - @foreach (var filePath in this.DocumentPaths) - { - @if (File.Exists(filePath)) + @{ + var currentFolder = string.Empty; + foreach (var filePath in this.DocumentPaths) { - - - - - - - @Path.GetFileName(filePath) - - + var folderPath = Path.GetDirectoryName(filePath); + if (folderPath != currentFolder) + { + currentFolder = folderPath; + + + + @folderPath: + + + } + + @if (File.Exists(filePath)) + { + + + + + + + @Path.GetFileName(filePath) + + + + + + + - + - - - - + } + else + { + + + + + + + @Path.GetFileName(filePath) + + + + - } - else - { - - - - - - - @Path.GetFileName(filePath) - - + + - - - - - - + + } } }