Browse Source

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 years ago
parent
commit
11a15b7e99
No account linked to committer's email address
1 changed files with 1 additions and 13 deletions
  1. 1
    13
      internal/driver/webhtml.go

+ 1
- 13
internal/driver/webhtml.go View File

117
   font-family: 'Roboto Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
117
   font-family: 'Roboto Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
118
   position: relative;
118
   position: relative;
119
 }
119
 }
120
-.menu-item.disabled {
121
-  opacity: 0.5;
122
-}
123
 .menu-item .menu-name:hover {
120
 .menu-item .menu-name:hover {
124
   opacity: 0.75;
121
   opacity: 0.75;
125
 }
122
 }
126
 .menu-item .menu-name:hover .downArrow {
123
 .menu-item .menu-name:hover .downArrow {
127
   border-top-color: #666;
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
 .menu-name {
126
 .menu-name {
136
   height: 100%;
127
   height: 100%;
137
   padding: 0 0.5em;
128
   padding: 0 0.5em;
259
     </div>
250
     </div>
260
   </div>
251
   </div>
261
 
252
 
262
-  <div id="refine" class="menu-item disabled">
253
+  <div id="refine" class="menu-item">
263
     <div class="menu-name">
254
     <div class="menu-name">
264
       Refine
255
       Refine
265
       <i class="downArrow"></i>
256
       <i class="downArrow"></i>
819
         link.classList.toggle('disabled', !enable);
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
   // Initialize button states
815
   // Initialize button states