From 27853c594d0e8ff556d14fdc0691a8ded4145cde Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Wed, 10 Dec 2025 04:17:29 +0100 Subject: [PATCH] Fix missing translation variable in NewLocation component --- .changes/unreleased/Fixed-20251210-041722.yaml | 6 ++++++ .../Activity/components/Location/NewLocation.vue | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 .changes/unreleased/Fixed-20251210-041722.yaml diff --git a/.changes/unreleased/Fixed-20251210-041722.yaml b/.changes/unreleased/Fixed-20251210-041722.yaml new file mode 100644 index 000000000..67667cb04 --- /dev/null +++ b/.changes/unreleased/Fixed-20251210-041722.yaml @@ -0,0 +1,6 @@ +kind: Fixed +body: Fix missing translation variable in NewLocation component +time: 2025-12-10T04:17:22.40669463+01:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue index 1cc16ac95..3d771e861 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/Location/NewLocation.vue @@ -136,6 +136,8 @@ import { ACTIVITY_LOCATION_FIELDS_TYPE, ACTIVITY_CHOOSE_LOCATION_TYPE, ACTIVITY_CREATE_NEW_LOCATION, + ACTIVITY_EDIT_ADDRESS, + ACTIVITY_CREATE_ADDRESS, trans, } from "translator"; @@ -156,6 +158,8 @@ export default { ACTIVITY_LOCATION_FIELDS_TYPE, ACTIVITY_CHOOSE_LOCATION_TYPE, ACTIVITY_CREATE_NEW_LOCATION, + ACTIVITY_EDIT_ADDRESS, + ACTIVITY_CREATE_ADDRESS }; }, props: ["availableLocations"], @@ -179,14 +183,14 @@ export default { options: { button: { text: { - create: "activity.create_address", - edit: "activity.edit_address", + create: ACTIVITY_CREATE_ADDRESS, + edit: ACTIVITY_EDIT_ADDRESS, }, size: "btn-sm", }, title: { - create: "activity.create_address", - edit: "activity.edit_address", + create: ACTIVITY_CREATE_ADDRESS, + edit: ACTIVITY_EDIT_ADDRESS, }, }, context: {