Fix more incomplete if/else statements.

This commit is contained in:
Connor Shea 2016-08-17 12:18:53 -06:00
parent d8654744cd
commit c648756a36
No known key found for this signature in database
GPG Key ID: 1993299A3C9BE6CF
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,8 @@
allResolved: function () {
if (this.discussion) {
return this.unresolvedDiscussionCount === 0;
} else {
return true;
}
},
showButton: function () {

View File

@ -22,11 +22,15 @@
showButton: function () {
if (this.discussion) {
return this.discussion.isResolvable();
} else {
return undefined;
}
},
allResolved: function () {
if (this.discussion) {
return this.discussion.isResolved();
} else {
return undefined;
}
},
buttonText: function () {
@ -39,6 +43,8 @@
loading: function () {
if (this.discussion) {
return this.discussion.loading;
} else {
return undefined;
}
}
},