mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
OrderSerializer#changes_allowed_until returns 'Not allowed' unless changes are allowed
This commit is contained in:
@@ -19,6 +19,7 @@ module Api
|
||||
end
|
||||
|
||||
def changes_allowed_until
|
||||
return I18n.t(:not_allowed) unless object.changes_allowed?
|
||||
I18n.l(object.order_cycle.andand.orders_close_at, format: :long)
|
||||
end
|
||||
|
||||
|
||||
@@ -645,6 +645,7 @@ en:
|
||||
terms_of_service: "Terms of service"
|
||||
on_demand: On demand
|
||||
none: None
|
||||
not_allowed: Not allowed
|
||||
|
||||
label_shops: "Shops"
|
||||
label_map: "Map"
|
||||
|
||||
Reference in New Issue
Block a user