From d352e21a33e0d8099936d7ad02853b1adec8f241 Mon Sep 17 00:00:00 2001 From: Jonas Furrer Date: Thu, 11 Aug 2022 13:51:52 +0200 Subject: [PATCH] Use specific linktext for sublocation map --- .../hsg-sublocation-link/hsg-sublocation-link.config.js | 6 +++--- .../hsg-sublocation-link/hsg-sublocation-link.controller.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.config.js b/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.config.js index d35b49a..a09235d 100644 --- a/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.config.js +++ b/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.config.js @@ -3,9 +3,9 @@ export const hsgSublocationLinkConfig = { mapLink: 'https://goo.gl/maps/1DpLN6WGWbJMTvCC6' }, labels: { - mapLinkText: { - de: 'Karte', - en: 'Map' + mapLinkTextSZ: { + de: 'Standort \'Zentrum für Sprachen und transkulturelle Kommunikation\'', + en: 'Location \'Center for Languages and Transcultural Communication\'' } } } diff --git a/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.controller.js b/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.controller.js index c824ff5..876e0c7 100644 --- a/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.controller.js +++ b/js/modules/prm-location-items-after/hsg-sublocation-link/hsg-sublocation-link.controller.js @@ -11,13 +11,13 @@ export class hsgSublocationLinkController { $onInit() { this.parentCtrl = this.afterCtrl.parentCtrl - this.mapLinkText = this.translate('mapLinkText') if (!this.parentCtrl.currLoc) { return } const loc = this.parentCtrl.currLoc.location if (loc) { const subLocationCode = loc.subLocationCode + this.mapLinkText = this.translate('mapLinkText' + subLocationCode) if (subLocationCode === 'SZ') { this.showLink = true this.mapLink = this.config[subLocationCode].mapLink