From 6e1c0003813a217c53966224d75fa0895050ec5d Mon Sep 17 00:00:00 2001 From: KDSBrowne Date: Mon, 9 Aug 2021 22:39:04 +0000 Subject: [PATCH] only show top divider with 2 or more presentations --- .../ui/components/actions-bar/actions-dropdown/component.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx index 35c2218ddb..1bce1e2a3f 100755 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/actions-dropdown/component.jsx @@ -147,7 +147,7 @@ class ActionsDropdown extends PureComponent { // description: formatMessage(presentationDesc), key: this.presentationItemId, onClick: handlePresentationClick, - dividerTop: true, + dividerTop: this.props?.presentations?.length > 1 ? true : false, }) } @@ -260,7 +260,7 @@ class ActionsDropdown extends PureComponent { const availableActions = this.getAvailableActions(); const availablePresentations = this.makePresentationItems(); - const children = availablePresentations.length > 2 && amIPresenter + const children = availablePresentations.length > 1 && amIPresenter ? availablePresentations.concat(availableActions) : availableActions; if ((!amIPresenter && !amIModerator)