FIX: Class names should be dasherized, not underscored
This commit is contained in:
parent
62be121328
commit
f42b6054e6
|
@ -22,7 +22,7 @@ export default DropdownButton.extend({
|
||||||
id: l.id,
|
id: l.id,
|
||||||
title: I18n.t(`${start}.title`),
|
title: I18n.t(`${start}.title`),
|
||||||
description: I18n.t(`${start}.description`),
|
description: I18n.t(`${start}.description`),
|
||||||
styleClasses: `${l.key} fa fa-${l.icon}`
|
styleClasses: `${l.key.dasherize()} fa fa-${l.icon}`
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -31,7 +31,7 @@ export default DropdownButton.extend({
|
||||||
text(notificationLevel) {
|
text(notificationLevel) {
|
||||||
const details = buttonDetails(notificationLevel);
|
const details = buttonDetails(notificationLevel);
|
||||||
const { key } = details;
|
const { key } = details;
|
||||||
const icon = iconHTML(details.icon, { class: key });
|
const icon = iconHTML(details.icon, { class: key.dasherize() });
|
||||||
|
|
||||||
if (this.get('buttonIncludesText')) {
|
if (this.get('buttonIncludesText')) {
|
||||||
const prefix = this.get('i18nPrefix');
|
const prefix = this.get('i18nPrefix');
|
||||||
|
|
Loading…
Reference in New Issue