Fix toolbar on Reports tab on Overview -> Utilization screen #6624
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #6608
Show toolbar when Report tab selected
Go to Overview -> Utilization -> select a Provider -> click Report Tab -> No Download button
Before:
![image](https://user-images.githubusercontent.com/9210860/72740376-d5c01780-3ba5-11ea-99d0-dd274dc322a7.png)
After:
![image](https://user-images.githubusercontent.com/9210860/72738567-23d31c00-3ba2-11ea-999f-a81e8030b4e2.png)
Do Not show toolbar when no data in Report
![image](https://user-images.githubusercontent.com/9210860/72790941-c6d57580-3c36-11ea-911c-bb87cc84aedc.png)
Go to Overview -> Utilization -> select a Provider -> click Report Tab -> click another Provider -> click Download button and get an error
Before:
[----] F, [2020-01-20T16:02:10.608136 #4597:3fe027b4a4b4] FATAL -- : Error caught: [NoMethodError] undefined method '[]' for nil:NilClass /ManageIQ/manageiq-ui-classic/app/controllers/utilization_controller.rb:232:in 'summ_hashes' /ManageIQ/manageiq-ui-classic/app/controllers/utilization_controller.rb:74:in 'report_download'
After:
@miq-bot add_label wip, bug, toolbars, ivanchuk/no