BigW Consortium Gitlab

Commit 409bc054 by Douwe Maan

Fix bug causing “Jump to discussion” button not to show

parent 8b05e8c2
......@@ -14,11 +14,7 @@
return this.discussions[this.discussionId];
},
allResolved: function () {
if (this.discussion) {
return this.unresolvedDiscussionCount === 0;
} else {
return true;
}
},
showButton: function () {
if (this.discussionId) {
......
......@@ -23,18 +23,18 @@
if (this.discussion) {
return this.discussion.isResolvable();
} else {
return undefined;
return false;
}
},
allResolved: function () {
isDiscussionResolved: function () {
if (this.discussion) {
return this.discussion.isResolved();
} else {
return undefined;
return false;
}
},
buttonText: function () {
if (this.allResolved) {
if (this.isDiscussionResolved) {
return "Unresolve discussion";
} else {
return "Resolve discussion";
......@@ -44,7 +44,7 @@
if (this.discussion) {
return this.discussion.loading;
} else {
return undefined;
return false;
}
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment