From a1ccf8a28e2a7f3adc9e40b9a4495ecb666f5d88 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 6 Oct 2016 16:56:20 +1100 Subject: [PATCH] Adding initial defaults for standing orders index column visibility --- lib/open_food_network/column_preference_defaults.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/open_food_network/column_preference_defaults.rb b/lib/open_food_network/column_preference_defaults.rb index 65415ee305..c7baa90d42 100644 --- a/lib/open_food_network/column_preference_defaults.rb +++ b/lib/open_food_network/column_preference_defaults.rb @@ -96,5 +96,15 @@ module OpenFoodNetwork products: { name: I18n.t("products"), visible: true } } end + + def standing_orders_index_columns + node = "admin.standing_orders.index" + { + customer: { name: I18n.t("admin.customer"), visible: true }, + schedule: { name: I18n.t("admin.schedule"), visible: true }, + payment_method: { name: I18n.t("admin.payment_method"), visible: false }, + shipping_method: { name: I18n.t("admin.shipping_method"), visible: false } + } + end end end