Skip to content

Commit

Permalink
additional information only shown if there are any available
Browse files Browse the repository at this point in the history
  • Loading branch information
luka-grabarevic committed Apr 15, 2018
1 parent e5d361d commit 37e4d56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions BuildsAppReborn.Client/Views/BuildsStatusView.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,15 @@
</Grid>
</Grid>
</Grid>
<Expander Background="Transparent" Grid.Row="1" Padding="0" Margin="0" IsExpanded="{Binding AdditionalInformationShown}">
<Expander Grid.Row="1"
Background="Transparent"
Padding="0"
Margin="0"
IsExpanded="{Binding AdditionalInformationShown}"
Visibility="{Binding AdditionalInformationAvailable,
Converter={StaticResource BooleanToVisibilityConverter}}">
<Expander.Header>
<TextBlock Text="Additional Infomation" />
<TextBlock Text="Additional Information" />
</Expander.Header>
<Expander.Content>
<Grid Height="80">
Expand Down
2 changes: 2 additions & 0 deletions BuildsAppReborn.Contracts.UI/BuildStatusGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ public BuildStatusGroup(IBuildDefinition buildDefinition, IEnumerable<BuildItem>

#region Public Properties

public Boolean AdditionalInformationAvailable => AllBuildItems.Any(a => a.CurrentTestRun != null);

public Boolean AdditionalInformationShown
{
get { return this.additionalInformationShown; }
Expand Down

0 comments on commit 37e4d56

Please sign in to comment.