BUGFIX: omit the "reply" word in mobile view

This commit is contained in:
Sam 2014-06-13 16:03:25 +10:00
parent 87baf58dbb
commit 5815e12caf
1 changed files with 7 additions and 1 deletions

View File

@ -222,7 +222,13 @@ export default Discourse.View.extend({
// Reply button // Reply button
buttonForReply: function() { buttonForReply: function() {
if (!this.get('controller.model.details.can_create_post')) return; if (!this.get('controller.model.details.can_create_post')) return;
return new Button('reply', 'post.controls.reply', 'reply', {className: 'create', textLabel: 'topic.reply.title'}); var options = {className: 'create'};
if(!Discourse.Mobile.mobileView) {
options.textLabel = 'topic.reply.title'
}
return new Button('reply', 'post.controls.reply', 'reply', options);
}, },
clickReply: function(post) { clickReply: function(post) {