Skip to content

Commit

Permalink
Merge pull request #6994 from himdel/menu-changes
Browse files Browse the repository at this point in the history
Menu - sort Providers menu together, singular

(cherry picked from commit b7c04d1)
  • Loading branch information
h-kataria authored and simaishi committed May 1, 2020
1 parent 8a86e6d commit 572e393
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions app/presenters/menu/default_menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def container_menu_section
end

def network_menu_section
Menu::Section.new(:net, N_("Networks"), 'pficon pficon-network', [
Menu::Section.new(:net, N_("Network"), 'pficon pficon-network', [
Menu::Item.new('ems_network', N_('Providers'), 'ems_network', {:feature => 'ems_network_show_list'}, '/ems_network/show_list'),
Menu::Item.new('cloud_network', N_('Networks'), 'cloud_network', {:feature => 'cloud_network_show_list'}, '/cloud_network/show_list'),
Menu::Item.new('cloud_subnet', N_('Subnets'), 'cloud_subnet', {:feature => 'cloud_subnet_show_list'}, '/cloud_subnet/show_list'),
Expand Down Expand Up @@ -266,9 +266,19 @@ def help_menu_section
end

def default_menu
[overview_menu_section, services_menu_section, compute_menu_section, configuration_menu_section,
network_menu_section, storage_menu_section, control_menu_section, automation_menu_section,
monitor_menu_section, settings_menu_section, help_menu_section].compact
[
overview_menu_section,
services_menu_section,
compute_menu_section,
network_menu_section,
storage_menu_section,
configuration_menu_section,
automation_menu_section,
control_menu_section,
monitor_menu_section,
settings_menu_section,
help_menu_section,
].compact
end

private
Expand Down

0 comments on commit 572e393

Please sign in to comment.