This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree 2 files changed +4
-3
lines changed
GitHub.App/ViewModels/GitHubPane
GitHub.VisualStudio/Views/GitHubPane 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public static IEnumerable<IPullRequestCheckViewModel> Build(IViewViewModelFactor
48
48
pullRequestCheckViewModel . Title = statusModel . Context ;
49
49
pullRequestCheckViewModel . Description = statusModel . Description ;
50
50
pullRequestCheckViewModel . Status = checkStatus ;
51
- pullRequestCheckViewModel . DetailsUrl = new Uri ( statusModel . TargetUrl ) ;
51
+ pullRequestCheckViewModel . DetailsUrl = statusModel . TargetUrl != null ? new Uri ( statusModel . TargetUrl ) : null ;
52
52
pullRequestCheckViewModel . AvatarUrl = statusModel . AvatarUrl ?? DefaultAvatar ;
53
53
pullRequestCheckViewModel . Avatar = statusModel . AvatarUrl != null
54
54
? new BitmapImage ( new Uri ( statusModel . AvatarUrl ) )
Original file line number Diff line number Diff line change 52
52
Visibility =" {Binding HasAnnotations, Converter={ghfvs:BooleanToVisibilityConverter}}"
53
53
Margin =" 0 0 0 0" Icon =" file_code" Foreground =" Black" />
54
54
</Label >
55
- <Label Grid.Column=" 4" HorizontalAlignment =" Right" >
56
- <Hyperlink ToolTip =" {Binding DetailsUrl}" Command =" {Binding OpenDetailsUrl}" >Details</Hyperlink >
55
+ <Label Grid.Column=" 4" HorizontalAlignment =" Right"
56
+ Visibility =" {Binding DetailsUrl, Converter={ghfvs:NullToVisibilityConverter}}" >
57
+ <Hyperlink ToolTip =" {Binding DetailsUrl}" Command =" {Binding OpenDetailsUrl}" >Details</Hyperlink >
57
58
</Label >
58
59
</Grid >
59
60
</local : GenericPullRequestCheckView >
You can’t perform that action at this time.
0 commit comments