From a5a7c430c4bffe34ed1501fa7dbc31ac0840d5a7 Mon Sep 17 00:00:00 2001 From: "Ratzman, Adam Mortimer" Date: Fri, 20 Dec 2024 17:17:53 -0500 Subject: [PATCH 1/2] Avoid sorting masked values in property grid --- src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.cs b/src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.cs index 7c7b11dde0..3aef0bb26e 100644 --- a/src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.cs +++ b/src/Aspire.Dashboard/Components/Controls/PropertyGrid.razor.cs @@ -85,7 +85,7 @@ public partial class PropertyGrid where TItem : IPropertyGridItem private static readonly RenderFragment s_emptyChildContent = _ => builder => { }; private static readonly GridSort s_defaultNameSort = GridSort.ByAscending(vm => vm.Name); - private static readonly GridSort s_defaultValueSort = GridSort.ByAscending(vm => vm.Value); + private static readonly GridSort s_defaultValueSort = GridSort.ByAscending(vm => vm.IsValueMasked ? null : vm.Value); [Parameter, EditorRequired] public IQueryable? Items { get; set; } From dafa4e2091f5fd8da02c1897ea5430277380d518 Mon Sep 17 00:00:00 2001 From: "Ratzman, Adam Mortimer" Date: Fri, 20 Dec 2024 17:18:24 -0500 Subject: [PATCH 2/2] Allow sorting resource properties --- src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor b/src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor index b7d6123e80..4270792ff0 100644 --- a/src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor +++ b/src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor @@ -53,7 +53,6 @@