do not default button title tag to label

This commit is contained in:
Arpit Jalan 2015-09-07 19:21:10 +05:30
parent 5dca462b5a
commit d05bc64df8
1 changed files with 3 additions and 3 deletions

View File

@ -8,9 +8,9 @@ export default Ember.Component.extend({
noText: Ember.computed.empty('translatedLabel'), noText: Ember.computed.empty('translatedLabel'),
@computed("title", "translatedLabel") @computed("title")
translatedTitle(title, translatedLabel) { translatedTitle(title) {
return title ? I18n.t(title) : translatedLabel; if (title) return I18n.t(title);
}, },
@computed("label") @computed("label")