Skip to content

Commit

Permalink
do not default button title tag to label
Browse files Browse the repository at this point in the history
  • Loading branch information
arpitjalan committed Sep 7, 2015
1 parent 5dca462 commit d05bc64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/discourse/components/d-button.js.es6
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export default Ember.Component.extend({

noText: Ember.computed.empty('translatedLabel'),

@computed("title", "translatedLabel")
translatedTitle(title, translatedLabel) {
return title ? I18n.t(title) : translatedLabel;
@computed("title")
translatedTitle(title) {
if (title) return I18n.t(title);
},

@computed("label")
Expand Down

0 comments on commit d05bc64

Please sign in to comment.