From d05bc64df87923c239982dc2a4d272129600f001 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 7 Sep 2015 19:21:10 +0530 Subject: [PATCH] do not default button title tag to label --- app/assets/javascripts/discourse/components/d-button.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/components/d-button.js.es6 b/app/assets/javascripts/discourse/components/d-button.js.es6 index 5fcc00a0fc1..068e814cae2 100644 --- a/app/assets/javascripts/discourse/components/d-button.js.es6 +++ b/app/assets/javascripts/discourse/components/d-button.js.es6 @@ -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")