FIX: Wasn't jumping to new topic
This commit is contained in:
parent
d08007f505
commit
776020cc8a
|
@ -301,6 +301,14 @@ export default Ember.Controller.extend({
|
|||
currentUser.set('reply_count', currentUser.get('reply_count') + 1);
|
||||
}
|
||||
|
||||
const disableJumpReply = Discourse.User.currentProp('disable_jump_reply');
|
||||
if (!composer.get('replyingToTopic') || !disableJumpReply) {
|
||||
const post = result.target;
|
||||
if (post && !staged) {
|
||||
DiscourseURL.routeTo(post.get('url'));
|
||||
}
|
||||
}
|
||||
|
||||
}).catch(function(error) {
|
||||
composer.set('disableDrafts', false);
|
||||
self.appEvents.one('composer:opened', () => bootbox.alert(error));
|
||||
|
|
Loading…
Reference in New Issue