File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
framework/core/js/src/forum/components Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export default class DiscussionListItem<CustomAttrs extends IDiscussionListItemA
74
74
const discussion = this . attrs . discussion ;
75
75
const controls = DiscussionControls . controls ( discussion , this ) . toArray ( ) ;
76
76
77
- ! ! controls . length && items . add ( 'controls' , this . controlsView ( controls ) , 100 ) ;
77
+ items . add ( 'controls' , this . controlsView ( controls ) , 100 ) ;
78
78
items . add ( 'slidableUnderneath' , this . slidableUnderneathView ( ) , 90 ) ;
79
79
items . add ( 'content' , this . contentView ( ) , 80 ) ;
80
80
@@ -83,14 +83,18 @@ export default class DiscussionListItem<CustomAttrs extends IDiscussionListItemA
83
83
84
84
controlsView ( controls : Mithril . ChildArray ) : Mithril . Children {
85
85
return (
86
- < Dropdown
87
- icon = "fas fa-ellipsis-v"
88
- className = "DiscussionListItem-controls"
89
- buttonClassName = "Button Button--icon Button--flat Slidable-underneath Slidable-underneath--right"
90
- accessibleToggleLabel = { app . translator . trans ( 'core.forum.discussion_controls.toggle_dropdown_accessible_label' ) }
91
- >
92
- { controls }
93
- </ Dropdown >
86
+ < >
87
+ { ! ! controls . length && (
88
+ < Dropdown
89
+ icon = "fas fa-ellipsis-v"
90
+ className = "DiscussionListItem-controls"
91
+ buttonClassName = "Button Button--icon Button--flat Slidable-underneath Slidable-underneath--right"
92
+ accessibleToggleLabel = { app . translator . trans ( 'core.forum.discussion_controls.toggle_dropdown_accessible_label' ) }
93
+ >
94
+ { controls }
95
+ </ Dropdown >
96
+ ) }
97
+ </ >
94
98
) ;
95
99
}
96
100
You can’t perform that action at this time.
0 commit comments