BigW Consortium Gitlab

Fix more incomplete if/else statements.

parent d8654744
...@@ -16,6 +16,8 @@ ...@@ -16,6 +16,8 @@
allResolved: function () { allResolved: function () {
if (this.discussion) { if (this.discussion) {
return this.unresolvedDiscussionCount === 0; return this.unresolvedDiscussionCount === 0;
} else {
return true;
} }
}, },
showButton: function () { showButton: function () {
......
...@@ -22,11 +22,15 @@ ...@@ -22,11 +22,15 @@
showButton: function () { showButton: function () {
if (this.discussion) { if (this.discussion) {
return this.discussion.isResolvable(); return this.discussion.isResolvable();
} else {
return undefined;
} }
}, },
allResolved: function () { allResolved: function () {
if (this.discussion) { if (this.discussion) {
return this.discussion.isResolved(); return this.discussion.isResolved();
} else {
return undefined;
} }
}, },
buttonText: function () { buttonText: function () {
...@@ -39,6 +43,8 @@ ...@@ -39,6 +43,8 @@
loading: function () { loading: function () {
if (this.discussion) { if (this.discussion) {
return this.discussion.loading; return this.discussion.loading;
} else {
return undefined;
} }
} }
}, },
......
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