mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Only cancel composer for when editing first post.
This commit is contained in:
parent
ec4a1bb2c4
commit
bce8d0632a
@ -217,7 +217,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Cancel and reopen the composer for the first post
|
// Cancel and reopen the composer for the first post
|
||||||
if (composerModel && (post.get('firstPost') || composerModel.get('editingPost'))) {
|
if (composerModel && (post.get('firstPost') || composerModel.get('editingFirstPost'))) {
|
||||||
composer.cancelComposer().then(() => composer.open(opts));
|
composer.cancelComposer().then(() => composer.open(opts));
|
||||||
} else {
|
} else {
|
||||||
composer.open(opts);
|
composer.open(opts);
|
||||||
|
Loading…
Reference in New Issue
Block a user