Don't show placeholders on Android
This commit is contained in:
parent
aa54006ad5
commit
d97b2382e6
|
@ -34,6 +34,17 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
||||||
}
|
}
|
||||||
}.observes('model.title', 'category'),
|
}.observes('model.title', 'category'),
|
||||||
|
|
||||||
|
@computed('model.postStream.posts')
|
||||||
|
postsToRender() {
|
||||||
|
return this.capabilities.isAndroid ? this.get('model.postStream.posts')
|
||||||
|
: this.get('model.postStream.postsWithPlaceholders');
|
||||||
|
},
|
||||||
|
|
||||||
|
@computed('model.postStream.loadingFilter')
|
||||||
|
androidLoading(loading) {
|
||||||
|
return this.capabilities.isAndroid && loading;
|
||||||
|
},
|
||||||
|
|
||||||
@computed('model.postStream.summary')
|
@computed('model.postStream.summary')
|
||||||
show_deleted: {
|
show_deleted: {
|
||||||
set(value) {
|
set(value) {
|
||||||
|
|
|
@ -69,7 +69,7 @@
|
||||||
{{#unless model.postStream.loadingFilter}}
|
{{#unless model.postStream.loadingFilter}}
|
||||||
{{cloaked-collection itemViewClass="post"
|
{{cloaked-collection itemViewClass="post"
|
||||||
defaultHeight="200"
|
defaultHeight="200"
|
||||||
content=model.postStream.postsWithPlaceholders
|
content=postsToRender
|
||||||
slackRatio="15"
|
slackRatio="15"
|
||||||
loadingHTML=""
|
loadingHTML=""
|
||||||
preservesContext="true"
|
preservesContext="true"
|
||||||
|
|
Loading…
Reference in New Issue