This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree 5 files changed +41
-1
lines changed
GitHub.Exports.Reactive/ViewModels
GitHub.InlineReviews/Views
5 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,9 @@ public IPullRequestSessionFile File
70
70
/// <inheritdoc/>
71
71
public DiffSide Side { get ; private set ; }
72
72
73
+ /// <inheritdoc/>
74
+ public bool IsResolved { get ; private set ; }
75
+
73
76
public bool IsNewThread
74
77
{
75
78
get => isNewThread ;
@@ -97,6 +100,7 @@ public async Task InitializeAsync(
97
100
File = file ;
98
101
LineNumber = thread . LineNumber ;
99
102
Side = thread . DiffLineType == DiffChangeType . Delete ? DiffSide . Left : DiffSide . Right ;
103
+ IsResolved = thread . IsResolved ;
100
104
101
105
foreach ( var comment in thread . Comments )
102
106
{
Original file line number Diff line number Diff line change @@ -36,6 +36,11 @@ public interface IPullRequestReviewCommentThreadViewModel : ICommentThreadViewMo
36
36
/// </summary>
37
37
DiffSide Side { get ; }
38
38
39
+ /// <summary>
40
+ /// Gets a value indicating whether comment thread has been marked as resolved by a user.
41
+ /// </summary>
42
+ bool IsResolved { get ; }
43
+
39
44
/// <summary>
40
45
/// Gets a value indicating whether the thread is a new thread being authored, that is not
41
46
/// yet present on the server.
Original file line number Diff line number Diff line change 63
63
</DockPanel >
64
64
</Border >
65
65
66
+ <Border DockPanel.Dock=" Top"
67
+ Background =" {DynamicResource {x:Static SystemColors.InfoBrushKey}}"
68
+ Padding =" 8" >
69
+ <Border .Style>
70
+ <Style TargetType =" Border" >
71
+ <Setter Property =" Visibility" Value =" Collapsed" />
72
+ <Style .Triggers>
73
+ <DataTrigger Binding =" {Binding Thread.IsResolved}" Value =" True" >
74
+ <Setter Property =" Visibility" Value =" Visible" />
75
+ </DataTrigger >
76
+ </Style .Triggers>
77
+ </Style >
78
+ </Border .Style>
79
+ <DockPanel >
80
+ <ui : OcticonImage DockPanel.Dock=" Left" Icon =" info" Margin =" 0 0 8 0" />
81
+ <TextBlock TextWrapping =" Wrap" Text =" {x:Static ghfvs:Resources.ThisConversationWasMarkedAsResolved}" />
82
+ </DockPanel >
83
+ </Border >
84
+
66
85
<Border DockPanel.Dock=" Top"
67
86
BorderThickness =" 0 0 0 1"
68
87
Background =" {DynamicResource VsBrush.CommandBarOptionsBackground}"
Original file line number Diff line number Diff line change @@ -881,4 +881,7 @@ https://git-scm.com/download/win</value>
881
881
<data name =" AndOthers" xml : space =" preserve" >
882
882
<value >and others</value >
883
883
</data >
884
+ <data name =" ThisConversationWasMarkedAsResolved" xml : space =" preserve" >
885
+ <value >This conversation was marked as resolved</value >
886
+ </data >
884
887
</root >
You can’t perform that action at this time.
0 commit comments