From 9d46b4c79c59b33a7b7828314e93e63987cc6db8 Mon Sep 17 00:00:00 2001 From: carlosjr Date: Fri, 22 Apr 2022 11:26:16 +0200 Subject: [PATCH] refactor(SuggestedTickets): added translations and descriptors --- modules/route/back/methods/route/getSuggestedTickets.js | 6 ++++++ modules/route/front/locale/en.yml | 1 + modules/route/front/locale/es.yml | 3 ++- modules/route/front/ticket-popup/index.html | 9 +++++++-- 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 modules/route/front/locale/en.yml diff --git a/modules/route/back/methods/route/getSuggestedTickets.js b/modules/route/back/methods/route/getSuggestedTickets.js index f0333e66b..c1a9c7cae 100644 --- a/modules/route/back/methods/route/getSuggestedTickets.js +++ b/modules/route/back/methods/route/getSuggestedTickets.js @@ -59,6 +59,12 @@ module.exports = Self => { fields: ['id', 'name'] } }, + { + relation: 'agencyMode', + scope: { + fields: ['id', 'name'] + } + }, { relation: 'address', scope: { diff --git a/modules/route/front/locale/en.yml b/modules/route/front/locale/en.yml new file mode 100644 index 000000000..0e5302b14 --- /dev/null +++ b/modules/route/front/locale/en.yml @@ -0,0 +1 @@ +Unlink zone: Unlink zone {{zoneName}} from agency {{agencyName}} \ No newline at end of file diff --git a/modules/route/front/locale/es.yml b/modules/route/front/locale/es.yml index 268bc4812..74ab2cd61 100644 --- a/modules/route/front/locale/es.yml +++ b/modules/route/front/locale/es.yml @@ -1,4 +1,5 @@ Routes: Rutas Search routes by id: Buscar rutas por identificador New route: Nueva ruta -route: ruta \ No newline at end of file +route: ruta +Unlink zone: Desvincular zona {{zoneName}} de agencia {{agencyName}} \ No newline at end of file diff --git a/modules/route/front/ticket-popup/index.html b/modules/route/front/ticket-popup/index.html index 33684a433..99e3364b8 100644 --- a/modules/route/front/ticket-popup/index.html +++ b/modules/route/front/ticket-popup/index.html @@ -33,7 +33,7 @@ PC Address - Warehouse + Zone @@ -62,7 +62,7 @@ @@ -76,4 +76,9 @@ question="{{$ctrl.confirmationMessage}}" message="Unlink selected zone?"> + + + + + -- 2.40.1