From 4d68723fe388350fd5fc977bbb6e9e5eb8574739 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 16 Jul 2018 09:24:32 +1000 Subject: [PATCH] Reference existing translation: closed order cycle https://github.com/openfoodfoundation/openfoodnetwork/issues/2465 Viewing a customers subscription could display a translation missing error. --- .../subscriptions/controllers/orders_panel_controller.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/admin/subscriptions/controllers/orders_panel_controller.js.coffee b/app/assets/javascripts/admin/subscriptions/controllers/orders_panel_controller.js.coffee index 16d133059e..1c22669903 100644 --- a/app/assets/javascripts/admin/subscriptions/controllers/orders_panel_controller.js.coffee +++ b/app/assets/javascripts/admin/subscriptions/controllers/orders_panel_controller.js.coffee @@ -16,7 +16,7 @@ angular.module("admin.subscriptions").controller "OrdersPanelController", ($scop oc = OrderCycles.byID[id] return t('js.subscriptions.close_date_not_set') unless oc?.orders_close_at? closes_at = moment(oc.orders_close_at) - text = if closes_at > moment() then t('js.subscriptions.closes') else t('js.subscription.closed') + text = if closes_at > moment() then t('js.subscriptions.closes') else t('js.subscriptions.closed') "#{text} #{closes_at.fromNow()}" $scope.stateText = (state) -> t("spree.order_state.#{state}")