mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
UX: do not default link title tag to label
This commit is contained in:
parent
d5ae7e54f9
commit
f26bd48ba0
1 changed files with 3 additions and 4 deletions
|
@ -28,10 +28,9 @@ export default Ember.Component.extend({
|
||||||
return '';
|
return '';
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("title", "label")
|
@computed("title")
|
||||||
translatedTitle(title, label) {
|
translatedTitle(title) {
|
||||||
const text = title || label;
|
if (title) return I18n.t(title);
|
||||||
if (text) return I18n.t(text);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
click(e) {
|
click(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue