Ver Fonte

HUE-6629 [core] Click on the main navbar username should close the mini JB and task list panels

Enrico Berti há 8 anos atrás
pai
commit
af3cfb5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      desktop/core/src/desktop/templates/hue.mako

+ 1 - 1
desktop/core/src/desktop/templates/hue.mako

@@ -242,7 +242,7 @@ ${ hueIcons.symbols() }
           <%
             view_profile = user.has_hue_permission(action="access_view:useradmin:edit_user", app="useradmin") or user.is_superuser
           %>
-          <button class="btn btn-flat" data-toggle="dropdown">
+          <button class="btn btn-flat" data-toggle="dropdown" data-bind="click: function(){ huePubSub.publish('hide.jobs.panel'); huePubSub.publish('hide.history.panel'); }">
             <i class="fa fa-user"></i> ${ user.username } <span class="caret"></span>
           </button>
           <ul class="dropdown-menu">