Migrate over slackRatio to vendored helper
This commit is contained in:
parent
3a2ae97668
commit
2a809d7855
|
@ -219,6 +219,10 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
|
|||
|
||||
},
|
||||
|
||||
slackRatio: function() {
|
||||
return Discourse.Capabilities.currentProp('slackRatio');
|
||||
}.property(),
|
||||
|
||||
jumpTopDisabled: function() {
|
||||
return (this.get('progressPosition') <= 3);
|
||||
}.property('progressPosition'),
|
||||
|
|
|
@ -64,7 +64,7 @@
|
|||
{{/if}}
|
||||
|
||||
{{#unless postStream.loadingFilter}}
|
||||
{{cloaked-collection cloakView="post" idProperty="post_number" defaultHeight="200" content=postStream.posts}}
|
||||
{{cloaked-collection cloakView="post" idProperty="post_number" defaultHeight="200" content=postStream.posts slackRatio=slackRatio}}
|
||||
{{/unless}}
|
||||
|
||||
{{#if postStream.loadingBelow}}
|
||||
|
|
Loading…
Reference in New Issue