mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 21:27:16 -05:00
Update ember-cloaking to remove dependency on I18n
This commit is contained in:
@@ -329,6 +329,10 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
|
||||
return Discourse.User.current() && !this.get('isPrivateMessage');
|
||||
}.property('isPrivateMessage'),
|
||||
|
||||
loadingHTML: function() {
|
||||
return "<div class='spinner'>" + I18n.t('loading') + "</div>";
|
||||
}.property(),
|
||||
|
||||
recoverTopic: function() {
|
||||
this.get('content').recover();
|
||||
},
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
{{/if}}
|
||||
|
||||
{{#unless postStream.loadingFilter}}
|
||||
{{cloaked-collection cloakView="post" idProperty="post_number" defaultHeight="200" content=postStream.posts slackRatio=slackRatio}}
|
||||
{{cloaked-collection cloakView="post" idProperty="post_number" defaultHeight="200" content=postStream.posts slackRatio=slackRatio loadingHTML=controller.loadingHTML}}
|
||||
{{/unless}}
|
||||
|
||||
{{#if postStream.loadingBelow}}
|
||||
|
||||
Reference in New Issue
Block a user