FIX: When viewing a summary, if a post jumps to the bottom cancel it.
This commit is contained in:
parent
332bf311c7
commit
95854a94c9
|
@ -217,6 +217,8 @@ const DiscourseURL = Ember.Object.createWithMixins({
|
|||
if (path.match(/last$/)) { opts.nearPost = topicController.get('model.highest_post_number'); }
|
||||
const closest = opts.nearPost || 1;
|
||||
|
||||
opts.cancelSummary = true;
|
||||
|
||||
postStream.refresh(opts).then(() => {
|
||||
topicController.setProperties({
|
||||
'model.currentPost': closest,
|
||||
|
|
|
@ -194,6 +194,11 @@ export default RestModel.extend({
|
|||
opts = opts || {};
|
||||
opts.nearPost = parseInt(opts.nearPost, 10);
|
||||
|
||||
if (opts.cancelSummary) {
|
||||
this.set('summary', false);
|
||||
delete opts.cancelSummary;
|
||||
}
|
||||
|
||||
const topic = this.get('topic');
|
||||
|
||||
// Do we already have the post in our list of posts? Jump there.
|
||||
|
|
Loading…
Reference in New Issue