FIX: You can edit two queued posts simultaneously

This commit is contained in:
Robin Ward 2015-04-20 16:49:11 -04:00
parent 5476723906
commit 66be9147a0
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ export default Ember.Controller.extend(BufferedContent, {
reject: updateState('rejected'),
edit() {
this.set('currentlyEditing', this.get('model'));
// This is stupid but pagedown cannot be on the screen twice or it will break
this.set('currentlyEditing', null);
Ember.run.scheduleOnce('afterRender', () => this.set('currentlyEditing', this.get('model')));
},
confirmEdit() {