Skip to content

Commit

Permalink
Fix incorrect title while displaying Datastore details page
Browse files Browse the repository at this point in the history
  • Loading branch information
hstastna committed Aug 23, 2018
1 parent 019baf1 commit 217ad32
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/controllers/storage_controller.rb
Expand Up @@ -333,8 +333,11 @@ def get_node_info(node, _show_list = true)
when :storage_tree then storage_get_node_info(node)
when :storage_pod_tree then storage_pod_get_node_info(node)
end
@right_cell_text += _(" (Names with \"%{search_text}\")") % {:search_text => @search_text} if @search_text.present?
@right_cell_text += @edit[:adv_search_applied][:text] if x_tree && x_tree[:type] == :storage && @edit && @edit[:adv_search_applied]

if node == 'root' || node.starts_with?('ms')
@right_cell_text += _(" (Names with \"%{search_text}\")") % {:search_text => @search_text} if @search_text.present?
@right_cell_text += @edit[:adv_search_applied][:text] if x_tree && x_tree[:type] == :storage && @edit && @edit[:adv_search_applied]\
end

if @edit && @edit.fetch_path(:adv_search_applied, :qs_exp) # If qs is active, save it in history
x_history_add_item(:id => x_node,
Expand Down

0 comments on commit 217ad32

Please sign in to comment.