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() {
|
jumpTopDisabled: function() {
|
||||||
return (this.get('progressPosition') <= 3);
|
return (this.get('progressPosition') <= 3);
|
||||||
}.property('progressPosition'),
|
}.property('progressPosition'),
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#unless postStream.loadingFilter}}
|
{{#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}}
|
{{/unless}}
|
||||||
|
|
||||||
{{#if postStream.loadingBelow}}
|
{{#if postStream.loadingBelow}}
|
||||||
|
|
Loading…
Reference in New Issue