Skip to content

Commit

Permalink
Use specific linktext for sublocation map
Browse files Browse the repository at this point in the history
  • Loading branch information
d22 committed Aug 11, 2022
1 parent e30724c commit d352e21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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\''
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d352e21

Please sign in to comment.