File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
framework/core/js/src/forum/components Expand file tree Collapse file tree 1 file changed +9
-11
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
- items . add ( 'controls' , this . controlsView ( controls ) , 100 ) ;
77
+ ! ! controls . length && 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,16 +83,14 @@ export default class DiscussionListItem<CustomAttrs extends IDiscussionListItemA
83
83
84
84
controlsView ( controls : Mithril . ChildArray ) : Mithril . Children {
85
85
return (
86
- ! ! controls . length && (
87
- < Dropdown
88
- icon = "fas fa-ellipsis-v"
89
- className = "DiscussionListItem-controls"
90
- buttonClassName = "Button Button--icon Button--flat Slidable-underneath Slidable-underneath--right"
91
- accessibleToggleLabel = { app . translator . trans ( 'core.forum.discussion_controls.toggle_dropdown_accessible_label' ) }
92
- >
93
- { controls }
94
- </ Dropdown >
95
- )
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 >
96
94
) ;
97
95
}
98
96
You can’t perform that action at this time.
0 commit comments