Github user arunmahadevan commented on the pull request:

    https://github.com/apache/storm/pull/1217#issuecomment-203792662
  
    1 . The tooltip takes some time to show up, whereas the tooltip on other 
elements like the title elements under Topology summary shows up immediately. I 
played around a bit and found a way to show the tooltip on disabled button 
immediately using the same style as other tooltips. You need to wrap the input 
element in a span like below,
    ```javascript
    <span style="display:inline-block;" data-toggle="tooltip" title="" 
data-original-title="To debug set topology.eventlogger.executors to a value > 0 
or nil">
      <input disabled="" onclick="confirmAction('test-topology-1-1459402415', 
'test-topology', 'debug/enable', true, 10, 'sampling percentage', 'debug')" 
type="button" value="Debug" class="btn btn-default">
    </span>
    ```
    2 . The tooltip is shown even if the button is enabled. You could add the 
`<span> </span>` only when number of executors is 0, which would take care of 
this.
    3 . The tooltip is also shown when the debug button gets disabled after the 
user clicks on it (when topology.eventlogger.executors > 0). Similar fix as 
above.
    4 . The button should be disabled in the spout/bolt pages as well.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to