Make view selector of All Generic Objects page work #3423
Merged
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.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1545296
Make view selector of All Generic Objects page work, when attaching GO to a service
and navigating to Services > My Services > service with GO and clicking on Instances
from Generic Objects table (where we can change the view from tile also to grid/list).
Right before changing the view in All Generic Objects page (now default Tile view):
![service_go](https://user-images.githubusercontent.com/13417815/36377500-b0af5614-1577-11e8-90fd-d3df74be79ab.png)
Before: (after clicking on Grid/List view from All Generic Objects page)
![service_go_before](https://user-images.githubusercontent.com/13417815/36377728-76bed604-1578-11e8-9b69-7017eec7e442.png)
After:
![service_go_grid](https://user-images.githubusercontent.com/13417815/36377632-1fb15792-1578-11e8-9ab6-3d779746fc0c.png)
![service_go_list](https://user-images.githubusercontent.com/13417815/36377639-2202627a-1578-11e8-8224-3fbe963bea5c.png)