mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
FIX: 'typeClass' shoud handle multi-word setting types - take 2
This commit is contained in:
@ -21,7 +21,7 @@ export default Ember.Component.extend(BufferedContent, ScrollTop, {
|
|||||||
|
|
||||||
@computed('componentType')
|
@computed('componentType')
|
||||||
typeClass(componentType) {
|
typeClass(componentType) {
|
||||||
return componentType.replace(/\_/g, ' ');
|
return componentType.replace(/\_/g, '-');
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed("setting.setting")
|
@computed("setting.setting")
|
||||||
|
Reference in New Issue
Block a user