Added message for no file attachments

This commit is contained in:
Thorsten Sommer 2025-12-17 18:40:08 +01:00
parent c058bb8aa1
commit e3244b6be0
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 13 additions and 1 deletions

View File

@ -3418,6 +3418,9 @@ UI_TEXT_CONTENT["AISTUDIO::DIALOGS::RETRIEVALPROCESSDIALOG::T900713019"] = "Canc
-- Embeddings
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::RETRIEVALPROCESSDIALOG::T951463987"] = "Embeddings"
-- There arent any file attachments available right now.
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::REVIEWATTACHMENTSDIALOG::T1302493281"] = "There arent any file attachments available right now."
-- Delete
UI_TEXT_CONTENT["AISTUDIO::DIALOGS::REVIEWATTACHMENTSDIALOG::T1469573738"] = "Delete"

View File

@ -8,7 +8,16 @@
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
@T("Here you can see all attached files. Files that can no longer be found (deleted, renamed, or moved) are marked with a warning icon and a strikethrough name. You can remove any attachment using the trash can icon.")
</MudJustifiedText>
<MudDivider/>
<MudDivider Class="mt-3 mb-3"/>
@if (!this.DocumentPaths.Any())
{
<MudJustifiedText Typo="Typo.body1" Class="mt-3">
@T("There arent any file attachments available right now.")
</MudJustifiedText>
}
@foreach (var filePath in this.DocumentPaths)
{
@if (File.Exists(filePath))