Pārlūkot izejas kodu

Keep refine menu enabled for views other than graph. (#286)

Pull request #263 disabled the refine menu for any views other than
Graph, but that's not expected - it's perfectly fine to use it for Flame
and Top, so just keep it enabled.

Fixes #285.
Alexey Alexandrov 7 gadus atpakaļ
vecāks
revīzija
11a15b7e99
No account linked to committer's email address
1 mainītis faili ar 1 papildinājumiem un 13 dzēšanām
  1. 1
    13
      internal/driver/webhtml.go

+ 1
- 13
internal/driver/webhtml.go Parādīt failu

@@ -117,21 +117,12 @@ a {
117 117
   font-family: 'Roboto Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
118 118
   position: relative;
119 119
 }
120
-.menu-item.disabled {
121
-  opacity: 0.5;
122
-}
123 120
 .menu-item .menu-name:hover {
124 121
   opacity: 0.75;
125 122
 }
126 123
 .menu-item .menu-name:hover .downArrow {
127 124
   border-top-color: #666;
128 125
 }
129
-.menu-item.disabled .menu-name:hover {
130
-  opacity: 1;
131
-}
132
-.menu-item.disabled .menu-name:hover .downArrow {
133
-  border-top-color: #ccc;
134
-}
135 126
 .menu-name {
136 127
   height: 100%;
137 128
   padding: 0 0.5em;
@@ -259,7 +250,7 @@ table tr td {
259 250
     </div>
260 251
   </div>
261 252
 
262
-  <div id="refine" class="menu-item disabled">
253
+  <div id="refine" class="menu-item">
263 254
     <div class="menu-name">
264 255
       Refine
265 256
       <i class="downArrow"></i>
@@ -819,9 +810,6 @@ function viewer(baseUrl, nodes) {
819 810
         link.classList.toggle('disabled', !enable);
820 811
       }
821 812
     }
822
-    if (document.getElementById('graph') !== null) {
823
-      document.getElementById('refine').classList.remove('disabled');
824
-    }
825 813
   }
826 814
 
827 815
   // Initialize button states