Skip to content
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

Always use explorer layout in datastores screen #11793

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/application_controller/ci_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2610,7 +2610,7 @@ def storage_button_operation(method, display_name)
storages = []

# Either a list or coming from a different controller (eg from host screen, go to its storages)
if %w(show_list storage_list storage_pod_list).include?(@lastaction) || @layout != "storage"
if params.key?(:miq_grid_checks)
storages = find_checked_items

if method == 'scan' && !Storage.batch_operation_supported?('smartstate_analysis', storages)
Expand Down
1 change: 1 addition & 0 deletions app/controllers/storage_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ def explorer
end

build_accordions_and_trees
@lastaction = "explorer" # restore the explorer layout, which was changed by process_show_list() to "show_list"

render :layout => "application"
end
Expand Down