app/components/express_admin/pane.rb in express_admin-1.3.0 vs app/components/express_admin/pane.rb in express_admin-1.3.1

- old
+ new

@@ -2,11 +2,11 @@ module ExpressAdmin class Pane < LayoutComponent emits -> (block) { - div(id: dom_id, class: pane_classes) { + div(container_div_attributes) { heading if title || status block.call(self) if block } } @@ -29,12 +29,12 @@ def status config[:status] || nil end - def pane_classes - add_class config[:id].to_s - class_names + def component_options + super + + [:title, :status] end end end