Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 46bab4e

Browse files
Updating Resource
1 parent 9cfba64 commit 46bab4e

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

src/GitHub.InlineReviews/ViewModels/PullRequestReviewCommentViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public PullRequestReviewCommentViewModel(
6464
.ToProperty(this, x => x.CanStartReview);
6565

6666
commitCaption = pendingReviewAndIdObservable
67-
.Select(arg => !arg.isNewComment ? Resources.EditComment : arg.hasPendingReview ? Resources.AddSingleComment : Resources.AddReviewComment)
67+
.Select(arg => !arg.isNewComment ? Resources.UpdateComment : arg.hasPendingReview ? Resources.AddSingleComment : Resources.AddReviewComment)
6868
.ToProperty(this, x => x.CommitCaption);
6969

7070
StartReview = ReactiveCommand.CreateAsyncTask(

src/GitHub.VisualStudio.UI/Resources.Designer.cs

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GitHub.VisualStudio.UI/Resources.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
<data name="Options_ForkButtonLabel" xml:space="preserve">
432432
<value>Show Fork button in Team Explorer</value>
433433
</data>
434-
<data name="EditComment" xml:space="preserve">
435-
<value>Edit Comment</value>
434+
<data name="UpdateComment" xml:space="preserve">
435+
<value>Update Comment</value>
436436
</data>
437437
</root>

test/GitHub.InlineReviews.UnitTests/ViewModels/PullRequestReviewCommentViewModelTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void IsAddSingleCommentWhenSessionHasNoPendingReview()
162162
}
163163

164164
[Test]
165-
public void IsEditCommentWhenEditingExistingComment()
165+
public void IsUpdateCommentWhenEditingExistingComment()
166166
{
167167
var session = CreateSession(false);
168168

@@ -171,7 +171,7 @@ public void IsEditCommentWhenEditingExistingComment()
171171

172172
var target = CreateTarget(session, pullRequestReviewCommentModel: pullRequestReviewCommentModel);
173173

174-
Assert.That(target.CommitCaption, Is.EqualTo("Edit Comment"));
174+
Assert.That(target.CommitCaption, Is.EqualTo("Update comment"));
175175
}
176176
}
177177

0 commit comments

Comments
 (0)