Skip to content

Commit

Permalink
Move env vars to bottom of resource details (#6552)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK authored Oct 31, 2024
1 parent 92b8506 commit a764cca
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/Aspire.Dashboard/Components/Controls/ResourceDetails.razor
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,6 @@
HighlightText="@_filter"
GridTemplateColumns="1fr 1.5fr" />
</FluentAccordionItem>
<FluentAccordionItem Heading="@ControlStringsLoc[nameof(ControlsStrings.ResourceDetailsEnvironmentVariablesHeader)]" Expanded="@_isEnvironmentVariablesExpanded">
<div slot="end">
<FluentBadge Appearance="Appearance.Neutral" Circular="true">
@FilteredEnvironmentVariables.Count()
</FluentBadge>
</div>
<PropertyGrid
TItem="EnvironmentVariableViewModel"
Items="@FilteredEnvironmentVariables"
IsValueMaskedChanged="@OnValueMaskedChanged"
HighlightText="@_filter"
GridTemplateColumns="1fr 1.5fr" />
</FluentAccordionItem>
@if (Resource.IsContainer())
{
<FluentAccordionItem Heading="@ControlStringsLoc[nameof(ControlsStrings.ResourceDetailsVolumesHeader)]" Expanded="@_isVolumesExpanded">
Expand Down Expand Up @@ -173,6 +160,18 @@
</AspireTemplateColumn>
</FluentDataGrid>
</FluentAccordionItem>
<FluentAccordionItem Heading="@ControlStringsLoc[nameof(ControlsStrings.ResourceDetailsEnvironmentVariablesHeader)]" Expanded="@_isEnvironmentVariablesExpanded">
<div slot="end">
<FluentBadge Appearance="Appearance.Neutral" Circular="true">
@FilteredEnvironmentVariables.Count()
</FluentBadge>
</div>
<PropertyGrid TItem="EnvironmentVariableViewModel"
Items="@FilteredEnvironmentVariables"
IsValueMaskedChanged="@OnValueMaskedChanged"
HighlightText="@_filter"
GridTemplateColumns="1fr 1.5fr" />
</FluentAccordionItem>
</FluentAccordion>
</div>
</div>
Expand Down

0 comments on commit a764cca

Please sign in to comment.