mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 04:51:32 +08:00
FIX: You can edit two queued posts simultaneously
This commit is contained in:
@ -22,7 +22,9 @@ export default Ember.Controller.extend(BufferedContent, {
|
|||||||
reject: updateState('rejected'),
|
reject: updateState('rejected'),
|
||||||
|
|
||||||
edit() {
|
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() {
|
confirmEdit() {
|
||||||
|
Reference in New Issue
Block a user