app/views/api/settings/index.json.jbuilder in fluentd-ui-1.0.1 vs app/views/api/settings/index.json.jbuilder in fluentd-ui-1.1.0

- old
+ new

@@ -1,3 +1,11 @@ -json.array! @config.elements do |elm| - json.partial! "api/settings/element", element: elm +@config.group_by_label.each do |label_name, types| + json.set!(label_name) do + types.each do |type, elements| + json.set!(type) do + json.array!(elements) do |element| + json.partial! "api/settings/element", current_label: label_name, element: element + end + end + end + end end