mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 05:13:45 +08:00
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,
|
||||
title: I18n.t(`${start}.title`),
|
||||
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) {
|
||||
const details = buttonDetails(notificationLevel);
|
||||
const { key } = details;
|
||||
const icon = iconHTML(details.icon, { class: key });
|
||||
const icon = iconHTML(details.icon, { class: key.dasherize() });
|
||||
|
||||
if (this.get('buttonIncludesText')) {
|
||||
const prefix = this.get('i18nPrefix');
|
||||
|
|
Loading…
Reference in New Issue
Block a user