From 0ed9ef5fded49bdeb18e8bc99bd2f53f007e783a Mon Sep 17 00:00:00 2001 From: Lucio Maranta Date: Wed, 20 Mar 2019 17:00:45 +0100 Subject: [PATCH] fix magazine translations --- .../src/app_modules/tooling/components/tooling-depot.ts | 2 +- Step/wwwroot/src/app_modules/tooling/components/tooling.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts index bbf16dd9..249d0f40 100644 --- a/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts +++ b/Step/wwwroot/src/app_modules/tooling/components/tooling-depot.ts @@ -727,7 +727,7 @@ export default class depot extends Vue { if(this.isSiemens){ if (mag && mag.name) return this.$options.filters.localize('store_title_magazine', "Magazzino") + " " + id + ": " + mag.name; - else if (id) + else return this.$options.filters.localize('magazine_name_' + id, "Magazzino"); } else { return this.$options.filters.localize('magazine_name_' + id, "Magazzino"); diff --git a/Step/wwwroot/src/app_modules/tooling/components/tooling.ts b/Step/wwwroot/src/app_modules/tooling/components/tooling.ts index 9a7dcf60..b5d3c33c 100644 --- a/Step/wwwroot/src/app_modules/tooling/components/tooling.ts +++ b/Step/wwwroot/src/app_modules/tooling/components/tooling.ts @@ -66,11 +66,11 @@ export default class Tooling extends Vue { if(this.isSiemens){ if (name) return name; - else if (id) + else return this.$options.filters.localize('magazine_name_' + id, "Magazzino") } else { - return this.$options.filters.localize('magazine_name_' + id, "Magazzino"); + return this.$options.filters.localize('magazine_name_' + id, "Magazzino") } }