summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/diff_notes
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-26 17:27:11 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-26 17:27:16 -0500
commitdbb78b36e1a672f6949a15623010b1d3765fee12 (patch)
tree27e96cae10ae043fd1cf860ea9f2aa779cebf8b5 /app/assets/javascripts/diff_notes
parent3605e4307ddf373071c0353a066c50fcead01e45 (diff)
downloadgitlab-ce-dbb78b36e1a672f6949a15623010b1d3765fee12.tar.gz
Fix title of discussion jump button at top of pagedm-fix-jump-button
Diffstat (limited to 'app/assets/javascripts/diff_notes')
-rw-r--r--app/assets/javascripts/diff_notes/components/jump_to_discussion.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/diff_notes/components/jump_to_discussion.js b/app/assets/javascripts/diff_notes/components/jump_to_discussion.js
index 8a0fd3bb4a7..37ddca29e71 100644
--- a/app/assets/javascripts/diff_notes/components/jump_to_discussion.js
+++ b/app/assets/javascripts/diff_notes/components/jump_to_discussion.js
@@ -16,6 +16,13 @@ const JumpToDiscussion = Vue.extend({
};
},
computed: {
+ buttonText: function () {
+ if (this.discussionId) {
+ return 'Jump to next unresolved discussion';
+ } else {
+ return 'Jump to first unresolved discussion';
+ }
+ },
allResolved: function () {
return this.unresolvedDiscussionCount === 0;
},