Show hub address for pickup only when feature enabled

This commit is contained in:
Maikel Linke
2025-06-26 14:19:39 +10:00
parent fcd6897240
commit 667b49b7f1
2 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
= @order.shipping_method.name
%em.fees= payment_or_shipping_price(@order.shipping_method, @order)
.two-columns
= render "delivery_details"
= render "delivery_details" if @order.shipping_method.delivery? || feature?(:hub_address)
- if @order.shipping_method.description.present?
%div
.summary-subtitle

View File

@@ -67,6 +67,9 @@ module OpenFoodNetwork
"inventory" => <<~DESC,
Enable the inventory.
DESC
"hub_address" => <<~DESC,
Show the hub's address as shipping address on pickup orders.
DESC
}.merge(conditional_features).freeze;
# Features you would like to be enabled to start with.