Fixed dialog title

This commit is contained in:
Thorsten Sommer 2025-12-18 15:30:26 +01:00
parent 759a073021
commit fae9a56d7e
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 5 additions and 6 deletions

View File

@ -1,11 +1,6 @@
@inherits MSGComponentBase
<MudDialog>
<TitleContent>
<MudText Typo="Typo.h4">
@T("Your attached files")
</MudText>
</TitleContent>
<DialogContent>
<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.")

View File

@ -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<ReviewAttachmentsDialog>("Your attached documents", dialogParameters, DialogOptions.FULLSCREEN);
var dialogReference = await dialogService.ShowAsync<ReviewAttachmentsDialog>(TB("Your attached files"), dialogParameters, DialogOptions.FULLSCREEN);
var dialogResult = await dialogReference.Result;
if (dialogResult is null || dialogResult.Canceled)
return documentPaths;