Skip to content

Commit

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

@computed("title", "label")
translatedTitle(title, label) {
const text = title || label;
if (text) return I18n.t(text);
@computed("title")
translatedTitle(title) {
if (title) return I18n.t(title);
},

click(e) {
Expand Down

0 comments on commit f26bd48

Please sign in to comment.