DEV: Ember 3.8.0

Co-Authored-By: majakomel <maja.komel@gmail.com>
This commit is contained in:
Maja Komel
2019-04-26 12:16:21 +02:00
committed by Joffrey JAFFEUX
parent c617e512ad
commit 4b455e741e
63 changed files with 573 additions and 438 deletions
@@ -1,15 +1,18 @@
import computed from "ember-addons/ember-computed-decorators";
export default Ember.Component.extend({
loadingMore: Ember.computed.alias("topicList.loadingMore"),
loading: Ember.computed.not("loaded"),
loaded: function() {
@computed("topicList.loaded")
loaded() {
var topicList = this.get("topicList");
if (topicList) {
return topicList.get("loaded");
} else {
return true;
}
}.property("topicList.loaded"),
},
_topicListChanged: function() {
this._initFromTopicList(this.get("topicList"));
@@ -27,9 +30,6 @@ export default Ember.Component.extend({
const topicList = this.get("topicList");
if (topicList) {
this._initFromTopicList(topicList);
} else {
// Without a topic list, we assume it's loaded always.
this.set("loaded", true);
}
},