Skip to content

Commit

Permalink
Change typ to 'service' for Service/Requests page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jozef Zigmund committed Apr 19, 2017
1 parent 9965796 commit 34eda33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ def layout_from_tab_name(tab_name)
case tab_name
when "ae" then "miq_request_ae"
when "host" then "miq_request_host"
when "service" then "miq_request_service"
else "miq_request_vm" # Includes "vm"
end
end
Expand Down
8 changes: 4 additions & 4 deletions app/controllers/miq_request_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,10 @@ def post_install_callback

def get_request_tab_type
case @layout
when "miq_request_ae" then "AutomateRequest"
when "miq_request_configured_system" then "MiqProvisionConfiguredSystemRequest"
when "miq_request_host" then "MiqHostProvisionRequest"
when "miq_request_vm" then "MiqProvisionRequest"
when "miq_request_ae" then "AutomateRequest"
when "miq_request_configured_system" then "MiqProvisionConfiguredSystemRequest"
when "miq_request_host" then "MiqHostProvisionRequest"
when "miq_request_vm", "miq_request_service" then "MiqProvisionRequest"
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/presenters/menu/default_menu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def services_menu_section
Menu::Item.new('services', N_('My Services'), 'service', {:feature => 'service', :any => true}, '/service/explorer'),
Menu::Item.new('catalogs', N_('Catalogs'), 'catalog', {:feature => 'catalog', :any => true}, '/catalog/explorer'),
Menu::Item.new('vm_or_template', N_('Workloads'), 'vm_explorer', {:feature => 'vm_explorer', :any => true}, '/vm_or_template/explorer'),
Menu::Item.new('miq_request_vm', N_('Requests'), 'miq_request', {:feature => 'miq_request_show_list'}, '/miq_request?typ=vm')
Menu::Item.new('miq_request_vm', N_('Requests'), 'miq_request', {:feature => 'miq_request_show_list'}, '/miq_request?typ=service')
])
end

Expand Down

0 comments on commit 34eda33

Please sign in to comment.