Skip to content

Commit da5e4c1

Browse files
Small changes
1 parent 18dc0fa commit da5e4c1

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

src/DotNetElements.AppFramework.MudBlazorExtensions/Components/TableActionsHeader.razor

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,6 @@ else
1717
{
1818
[Parameter]
1919
public bool SimpleTable { get; set; }
20+
21+
// todo check why this has no Width param but in some places we set a Width param
2022
}

src/DotNetElements.AppFramework.MudBlazorExtensions/Extensions/DialogServiceExtensions.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ public static async Task<bool> ShowConfirmDeleteDialogAsync(this IDialogService
8484
}
8585

8686
// todo add overload with list of error messages
87-
public static Task ShowValidationErrorMessage(this IDialogService dialogService)
87+
// todo improve visualization of error messages
88+
public static Task ShowValidationErrorMessage(this IDialogService dialogService, string? errorDetails = null)
8889
{
89-
return dialogService.ShowMessageBox("Validation Error", "Please fix all validation errors.");
90+
return dialogService.ShowMessageBox("Validation Error", $"Please fix all validation errors.\n\n{errorDetails}");
9091
}
9192
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace DotNetElements.AppFramework;
2+
3+
public interface IOutbox<TDbContext>
4+
where TDbContext : DbContext, IDbSetOutbox
5+
{
6+
void AddMessage<T>(T message);
7+
}

0 commit comments

Comments
 (0)