From dccd60ea783fa6c9612adc8ffddf3f9ca41b128f Mon Sep 17 00:00:00 2001 From: Nikola Lovic Date: Wed, 16 Jan 2019 09:58:06 +0100 Subject: [PATCH] Mon 3164 allow to close submenu by clicking on icon (#7127) * fix(ui): Dropdown menu fix when click on icon in header Resolve MON-3164 * fix(ui): Layout changes for header submenu --- .../src/components/hostMenu/index.js | 13 ++++++------- .../src/components/pollerMenu/index.js | 10 +++++----- .../src/components/serviceStatusMenu/index.js | 13 ++++++------- .../src/styles/partials/_header.scss | 19 ++++++++++++++++--- 4 files changed, 33 insertions(+), 22 deletions(-) diff --git a/www/front_src/src/components/hostMenu/index.js b/www/front_src/src/components/hostMenu/index.js index d9385d3544a..18c29d42d5b 100755 --- a/www/front_src/src/components/hostMenu/index.js +++ b/www/front_src/src/components/hostMenu/index.js @@ -88,13 +88,6 @@ class HostMenu extends Component { return (
- - - {data.pending > 0 ? : null} - - - - 0 ? "red" : "red-bordered")}> {numeral(data.down.unhandled).format("0a")} @@ -111,6 +104,12 @@ class HostMenu extends Component {
this.host = host}> + + + {data.pending > 0 ? : null} + + + {this.props.children}