Browse Source

AMBARI-9801. Background Operation Popup: hovering on item highlights the row at the top level, but not when you click into host and task levels (alexantonenko)

Alex Antonenko 10 năm trước cách đây
mục cha
commit
b06cbccbcc

+ 2 - 1
ambari-web/app/styles/application.less

@@ -1435,7 +1435,7 @@ a:focus {
   .modal-body, .modal-footer, .modal-header {
     min-width: 600px;
   }
-  #service-info {
+  #service-info, #host-info, #host-log {
     .log-list-wrap:hover {
       background-color: #e6e6e6;
     }
@@ -1484,6 +1484,7 @@ a:focus {
   }
   #host-info, #service-info, #host-log {
     .log-list-wrap {
+      cursor: pointer;
       padding: 10px 10px 10px 20px;
       border-top: 1px solid #CCC;
       border-bottom: 1px solid #CCC;

+ 6 - 6
ambari-web/app/templates/common/host_progress_popup.hbs

@@ -41,8 +41,8 @@
         <div class="log-list-wrap">{{t hostPopup.noServicesToShow}}</div>
       {{else}}
         {{#each servicesInfo in view.services}}
-          <div {{bindAttr class="servicesInfo.isVisible::hidden :log-list-wrap"}}>
-            <div {{action gotoHosts servicesInfo}} class="task-list-line-cursor">
+          <div {{action gotoHosts servicesInfo}} {{bindAttr class="servicesInfo.isVisible::hidden :log-list-wrap"}}>
+            <div class="task-list-line-cursor">
               <div class="operation-name-icon-wrap">
                 {{view statusIcon servicesInfoBinding="servicesInfo"}}
                 <a href="#">
@@ -116,8 +116,8 @@
           <div class="log-list-wrap">{{t hostPopup.noHostsToShow}}</div>
         {{else}}
           {{#each hostInfo in view.pageContent}}
-            <div {{bindAttr class="hostInfo.isVisible::hidden :log-list-wrap"}}>
-              <div {{action gotoTasks hostInfo}} class="task-list-line-cursor">
+            <div {{action gotoTasks hostInfo}} {{bindAttr class="hostInfo.isVisible::hidden :log-list-wrap"}}>
+              <div class="task-list-line-cursor">
                 <div class="host-name-icon-wrap">
                   {{view statusIcon servicesInfoBinding="hostInfo"}}
                   <a href="#">
@@ -165,8 +165,8 @@
         <div class="log-list-wrap">{{t hostPopup.noTasksToShow}}</div>
       {{else}}
         {{#each taskInfo in view.tasks}}
-          <div {{bindAttr class="taskInfo.isVisible::hidden :log-list-wrap"}}>
-            <div {{action toggleTaskLog taskInfo}} class="task-list-line-cursor">
+          <div {{action toggleTaskLog taskInfo}} {{bindAttr class="taskInfo.isVisible::hidden :log-list-wrap"}}>
+            <div class="task-list-line-cursor">
               <div class="operation-name-icon-wrap">
                 {{view statusIcon servicesInfoBinding="taskInfo"}}
                 <a href="#">