mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 11:04:42 +08:00
DEV: apply new coding standards (#10592)
This commit is contained in:
@ -8,20 +8,20 @@ export default DropdownSelectBoxComponent.extend({
|
||||
selectKitOptions: {
|
||||
showFullTitle: false,
|
||||
filterable: false,
|
||||
autoFilterable: false
|
||||
autoFilterable: false,
|
||||
},
|
||||
|
||||
modifyContent(contents) {
|
||||
return contents
|
||||
.map(content => {
|
||||
.map((content) => {
|
||||
if (content.condition) {
|
||||
return {
|
||||
icon: content.icon,
|
||||
name: I18n.t(content.label),
|
||||
id: content.action
|
||||
id: content.action,
|
||||
};
|
||||
}
|
||||
})
|
||||
.filter(Boolean);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user