Fix more incomplete if/else statements.
This commit is contained in:
parent
d8654744cd
commit
c648756a36
|
@ -16,6 +16,8 @@
|
|||
allResolved: function () {
|
||||
if (this.discussion) {
|
||||
return this.unresolvedDiscussionCount === 0;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
},
|
||||
showButton: function () {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue