-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show breadcrumbs when redirected from another controller #5148
Conversation
55e0db8
to
236a313
Compare
236a313
to
8ed520c
Compare
@@ -19,6 +19,11 @@ def self.table_name | |||
@table_name ||= "ems_cloud" | |||
end | |||
|
|||
def show | |||
@breadcrumbs = [{:name => "Cloud Providers", :url => "/ems_cloud/show_list"}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should not be it _('Cloud Providers')? (Same below) 🌐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ye, it should
@PanSpagetka The current CI failures seem related to your changes. |
b1d4497
to
c7dc7ad
Compare
Checked commits PanSpagetka/manageiq-ui-classic@8ed520c~...c7dc7ad with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@mzazrivec specs fixed :) |
@rvsia Are the current changes OK with you? |
When redirect from another (e.g. Alert) controller provider dashboards have no breadcrumbs. In
GenericShowMixin
show_dashboard
method is dropping breadcrumb, but only for the showed record (one concrete Provider, like Amazon or Openshift instance). Not the upper level of hierarchy (Cloud/Container provider). So there are no breadcrumbs showed.This PR adds the base of breadcrumbs fro providers.
Links [Optional]
https://bugzilla.redhat.com/show_bug.cgi?id=1655114
Steps for Testing/QA [Optional]