mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 23:06:57 +08:00
FIX: Gaps weren't refreshing on refresh
This commit is contained in:
parent
ab94399ae4
commit
4b745612d8
|
@ -9,8 +9,7 @@
|
|||
export default Ember.Component.extend({
|
||||
classNameBindings: [':gap', 'gap::hidden'],
|
||||
|
||||
init: function() {
|
||||
this._super();
|
||||
_setup: function() {
|
||||
this.set('loading', false);
|
||||
|
||||
var before = this.get('before') === 'true',
|
||||
|
@ -19,7 +18,7 @@ export default Ember.Component.extend({
|
|||
if (gaps) {
|
||||
this.set('gap', gaps[this.get('post.id')]);
|
||||
}
|
||||
},
|
||||
}.on('init'),
|
||||
|
||||
render: function(buffer) {
|
||||
if (this.get('loading')) {
|
||||
|
|
|
@ -662,6 +662,7 @@ Discourse.PostStream = Em.Object.extend({
|
|||
posts = this.get('posts');
|
||||
|
||||
posts.clear();
|
||||
this.set('gaps', null);
|
||||
if (postStreamData) {
|
||||
// Load posts if present
|
||||
postStreamData.posts.forEach(function(p) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user