Skip to content

Commit

Permalink
Merge pull request #1453 from zeari/topology_fix_max_items
Browse files Browse the repository at this point in the history
fix topology max items feature
(cherry picked from commit a26ddfc)

https://bugzilla.redhat.com/show_bug.cgi?id=1460382
  • Loading branch information
martinpovolny authored and simaishi committed Jun 9, 2017
1 parent 993d6a3 commit a3ea4bb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function ContainerTopologyCtrl($scope, $http, $interval, topologyService, $windo
$scope.relations = data.data.relations;
$scope.kinds = data.data.kinds;
icons = data.data.icons;
var size_limit = data.data.settings.containers_max_objects;
var size_limit = data.data.settings.containers_max_items;

if (currentSelectedKinds && (Object.keys(currentSelectedKinds).length !== Object.keys($scope.kinds).length)) {
$scope.kinds = currentSelectedKinds;
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/configuration_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def get_form_vars
@edit[:new][:perpage][:tile] = params[:perpage_tile].to_i if params[:perpage_tile]
@edit[:new][:perpage][:list] = params[:perpage_list].to_i if params[:perpage_list]
@edit[:new][:perpage][:reports] = params[:perpage_reports].to_i if params[:perpage_reports]
@edit[:new][:topology][:containers_max_objects] = params[:topology_containers_max_objects].to_i if params[:topology_containers_max_objects]
@edit[:new][:topology][:containers_max_items] = params[:topology_containers_max_items].to_i if params[:topology_containers_max_items]
@edit[:new][:display][:theme] = params[:display_theme] unless params[:display_theme].nil?
@edit[:new][:display][:bg_color] = params[:bg_color] unless params[:bg_color].nil?
@edit[:new][:display][:reporttheme] = params[:display_reporttheme] unless params[:display_reporttheme].nil?
Expand Down
2 changes: 1 addition & 1 deletion app/views/configuration/_ui_1.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
%fieldset
%h3
= _('Topology Default Items in View')
- [[_("Containers"), "topology_containers_max_objects", :containers_max_objects]].each do |item_per_page|
- [[_("Containers"), "topology_containers_max_items", :containers_max_items]].each do |item_per_page|
.form-group
%label.col-md-3.control-label
= _(item_per_page[0])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,6 @@
"Kubernetes":{"type":"image","icon":"...kubernetes..."},
"Openshift":{"type":"image","icon":"...openshift..."}
},
"settings": { "containers_max_objects":100}
"settings": { "containers_max_items":100}
}
}

0 comments on commit a3ea4bb

Please sign in to comment.