REFACTOR: Remove unused component

This commit is contained in:
Robin Ward 2017-06-21 12:32:56 -04:00
parent d09bed0d76
commit 32756060bb
3 changed files with 11 additions and 20 deletions

View File

@ -1,8 +0,0 @@
export default Ember.Component.extend({
actions: {
// TODO: When on Ember 1.13, use a closure action
loadMore() {
this.sendAction('loadMore');
}
}
});

View File

@ -1,11 +0,0 @@
{{#load-more selector=".user-stream .item" action="loadMore"}}
<div class='user-stream'>
{{#each posts as |post|}}
{{group-post post=post}}
{{else}}
<div>{{i18n emptyText}}</div>
{{/each}}
</div>
{{/load-more}}
{{conditional-loading-spinner condition=loading}}

View File

@ -1 +1,11 @@
{{group-post-stream posts=model emptyText=emptyText loadMore="loadMore" loading=loading}}
{{#load-more selector=".user-stream .item" action=(action "loadMore")}}
<div class='user-stream'>
{{#each model as |post|}}
{{group-post post=post}}
{{else}}
<div>{{i18n emptyText}}</div>
{{/each}}
</div>
{{/load-more}}
{{conditional-loading-spinner condition=loading}}