Skip to content

Commit

Permalink
Fixed to not show "Back" button on summary screen and fixed breadcrumb.
Browse files Browse the repository at this point in the history
- Back button is to go back to summary screen, is displayed on sub-screens that are linked from summary screen.

UI PR #7401

for #6819
  • Loading branch information
h-kataria committed Feb 2, 2021
1 parent a03a07c commit 6575caf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/miq_event_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def show_list
end

def show
@display = params[:display] || "main" unless pagination_or_gtl_request?
@lastaction = "show"
@record = MiqEventDefinition.find_by(:id => params[:id])
end

Expand All @@ -53,7 +55,7 @@ def breadcrumbs_options
{
:breadcrumbs => [
{:title => _("Control")},
{:title => _('Events')},
{:title => _('Events'), :url => controller_url},
].compact,
:record_title => :description,
}
Expand Down

0 comments on commit 6575caf

Please sign in to comment.