From fae9a56d7e3059df5e1ea91b96c4767bcff7a895 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Thu, 18 Dec 2025 15:30:26 +0100 Subject: [PATCH] Fixed dialog title --- .../Dialogs/ReviewAttachmentsDialog.razor | 5 ----- .../Dialogs/ReviewAttachmentsDialog.razor.cs | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor index 5bde0562..9e8a19f2 100644 --- a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor +++ b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor @@ -1,11 +1,6 @@ @inherits MSGComponentBase - - - @T("Your attached files") - - @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.") diff --git a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs index ee5fc592..64e6bb10 100644 --- a/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs +++ b/app/MindWork AI Studio/Dialogs/ReviewAttachmentsDialog.razor.cs @@ -1,10 +1,14 @@ using AIStudio.Components; +using AIStudio.Tools.PluginSystem; + using Microsoft.AspNetCore.Components; namespace AIStudio.Dialogs; public partial class ReviewAttachmentsDialog : MSGComponentBase { + private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ReviewAttachmentsDialog).Namespace, nameof(ReviewAttachmentsDialog)); + [CascadingParameter] private IMudDialogInstance MudDialog { get; set; } = null!; @@ -23,7 +27,7 @@ public partial class ReviewAttachmentsDialog : MSGComponentBase { x => x.DocumentPaths, documentPaths } }; - var dialogReference = await dialogService.ShowAsync("Your attached documents", dialogParameters, DialogOptions.FULLSCREEN); + var dialogReference = await dialogService.ShowAsync(TB("Your attached files"), dialogParameters, DialogOptions.FULLSCREEN); var dialogResult = await dialogReference.Result; if (dialogResult is null || dialogResult.Canceled) return documentPaths;