lib/lookbook/stores/panel_store.rb in lookbook-2.0.0.beta.4 vs lib/lookbook/stores/panel_store.rb in lookbook-2.0.0.beta.5
- old
+ new
@@ -39,10 +39,13 @@
def remove_panel(name)
store.delete(Utils.symbolize_name(name)) { |name| not_found!(name) }
end
def load_config(config)
- config.to_h.each { |name, opts| add_panel(name, opts) }
+ config.to_h.each do |name, opts|
+ opts[:system] = true
+ add_panel(name, opts)
+ end
end
def get_panel(name)
panels.find { |panel| panel.name == Utils.symbolize_name(name) }
end