Skip to content

Commit

Permalink
Hide back button on provider dashboard screens
Browse files Browse the repository at this point in the history
  • Loading branch information
hayesr committed Apr 17, 2017
1 parent a965a4f commit 6fcab4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/helpers/application_helper.rb
Expand Up @@ -731,6 +731,8 @@ def calculate_toolbars
def display_back_button?
# don't need to back button if @record is not there or @record doesnt have name or
# evm_display_name column, i.e MiqProvisionRequest
return false if @display == "dashboard"

if (@lastaction != "show" || (@lastaction == "show" && @display != "main")) &&
@record &&
(@record.respond_to?('name') && !@record.name.nil?)
Expand Down

0 comments on commit 6fcab4c

Please sign in to comment.