-
Notifications
You must be signed in to change notification settings - Fork 897
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DARGA] ops_rbac - group detail - don't render trees that are not visible #13471
[DARGA] ops_rbac - group detail - don't render trees that are not visible #13471
Conversation
since #3859 (comment), `miq_tab_header` would put ng-click (hardcoded to call `changeAuthTab`) on every tab header, even though it makes no sense for most tabs Fixed by moving the ng-click value explicitly to options, and passing it from where `ng-click` is actually needed Also added :onclick to options, so that custom functionality can be added in non-angular tabs too. miq_tab_content now also takes a :lazy option, which causes the tab content to render only if the tab is currently active (cherry picked from commit 2b1da75)
plus some cleanup (cherry picked from commit a17448d)
..and enable the tabs to be lazy (cherry picked from commit eb96dc7)
only loaded once, then it's kept in the browser (so only the first time one switches to a tab, a round trip is needed) (cherry picked from commit 90b0e86)
a long line, and a trailing _ in array assignment (cherry picked from commit a7b219c)
…r lazy loading the tab otherwise, ManageIQ.record.recordId gets overwritten with null, causing the toolbar to generate an url without an id (cherry picked from commit fb3a0e7)
(cherry picked from commit a110791)
(cherry picked from commit c99485e)
technically cherry-picked from 01193c0 same change, different code
|
…resenter because render :json => presenter.for_render is too new for darga
Checked commits https://github.com/himdel/manageiq/compare/e66e26ae5f228353f227dbc15c1363cf4c8fcdf0~...6b5827fb4b2a2e29766770cbbe27cd9dca27cffe with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 app/controllers/ops_controller/ops_rbac.rb
app/views/layouts/_multi_auth_credentials.html.haml
app/views/ops/_rbac_group_details.html.haml
app/views/ops/rbac_group/_customer_tags.html.haml
app/views/ops/rbac_group/_hosts_clusters.html.haml
app/views/ops/rbac_group/_vms_templates.html.haml
|
Call changeAuthTab from more miq_tab_header()s miq_tab_header() once did this automatically, that was disabled by ManageIQ/manageiq-ui-classic@2b1da75 [backported to darga as commit e66e26a in ManageIQ#13471] and explicit ng-click was added to some tab headers but not all, this adds some more. https://bugzilla.redhat.com/show_bug.cgi?id=1434064 (master)
This is a darga version of ManageIQ/manageiq-ui-classic#68 - lazy-load right-side trees in rbac group detail.
(Euwe version is in #13399)
https://bugzilla.redhat.com/show_bug.cgi?id=1399345
https://bugzilla.redhat.com/show_bug.cgi?id=1412441 (darga)