1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

Implement post editing

This commit is contained in:
Toby Zerner
2015-02-08 15:55:33 +10:30
parent 2d181933ea
commit 59964e3b22
8 changed files with 92 additions and 29 deletions

View File

@@ -42,17 +42,6 @@ export default Ember.ArrayProxy.extend(Ember.Evented, {
// stream to a big gap that covers the amount of posts we now have.
this.set('ids', ids);
this.clear();
// Look in the store and see if we already have the data for any of
// these posts. If we do, we can add them to the stream.
var posts = [];
var store = this.get('store');
ids.forEach(function(id) {
if (store.hasRecordForId('post', id)) {
posts.pushObject(store.getById('post', id));
}
});
this.addPosts(posts);
},
// Clear the contents of the post stream, resetting it to one big gap.