FIX: queues posts broken for multiple posts
This commit is contained in:
parent
4b0dcd64eb
commit
0c4527323e
|
@ -19,13 +19,14 @@ function updateState(state, opts) {
|
||||||
|
|
||||||
export default Ember.Component.extend(bufferedProperty('editables'), {
|
export default Ember.Component.extend(bufferedProperty('editables'), {
|
||||||
editing: propertyEqual('post', 'currentlyEditing'),
|
editing: propertyEqual('post', 'currentlyEditing'),
|
||||||
editables: {},
|
editables: null,
|
||||||
_confirmDelete: updateState('rejected', {deleteUser: true}),
|
_confirmDelete: updateState('rejected', {deleteUser: true}),
|
||||||
|
|
||||||
_initEditables: function() {
|
_initEditables: function() {
|
||||||
const post = this.get('post');
|
const post = this.get('post');
|
||||||
const postOptions = post.get('post_options');
|
const postOptions = post.get('post_options');
|
||||||
|
|
||||||
|
this.set('editables', {});
|
||||||
this.set('editables.raw', post.get('raw'));
|
this.set('editables.raw', post.get('raw'));
|
||||||
this.set('editables.category', post.get('category'));
|
this.set('editables.category', post.get('category'));
|
||||||
this.set('editables.category_id', post.get('category.id'));
|
this.set('editables.category_id', post.get('category.id'));
|
||||||
|
|
Loading…
Reference in New Issue