mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:13:22 +08:00
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'),
|
||||
|
||||
@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')
|
||||
show_deleted: {
|
||||
set(value) {
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
{{#unless model.postStream.loadingFilter}}
|
||||
{{cloaked-collection itemViewClass="post"
|
||||
defaultHeight="200"
|
||||
content=model.postStream.postsWithPlaceholders
|
||||
content=postsToRender
|
||||
slackRatio="15"
|
||||
loadingHTML=""
|
||||
preservesContext="true"
|
||||
|
|
Loading…
Reference in New Issue
Block a user