mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:53:23 +08:00
do not default button title tag to label
This commit is contained in:
parent
5dca462b5a
commit
d05bc64df8
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user