Skip to content

Commit

Permalink
Merge pull request #680 from ZitaNemeckova/fix_group_tree
Browse files Browse the repository at this point in the history
Add default tab for first selected group after login
  • Loading branch information
himdel authored Mar 14, 2017
2 parents f915a6d + 1905cc3 commit ac2683d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ops_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def set_active_tab(nodetype)
when :rbac_tree
@sb[:active_tab] = "rbac_details"
# default to the first tab in group detail
@sb[:active_rbac_group_tab] ||= "rbac_customer_tags" if node.last == 'g'
@sb[:active_rbac_group_tab] ||= "rbac_customer_tags" if node.last == 'g' || node.first == 'g'
when :diagnostics_tree
case node[0]
when "root"
Expand Down

0 comments on commit ac2683d

Please sign in to comment.