From a4cdbc9b1cd3c83ced97b034c4ff58809dbb7ace Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 9 Dec 2022 22:29:15 +0100 Subject: [PATCH] Adding URL base to language selector. #548 --- src/frontend/app/ui/language/language.component.html | 2 +- src/frontend/app/ui/language/language.component.ts | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/frontend/app/ui/language/language.component.html b/src/frontend/app/ui/language/language.component.html index 5a9eb632..240ba634 100644 --- a/src/frontend/app/ui/language/language.component.html +++ b/src/frontend/app/ui/language/language.component.html @@ -14,6 +14,6 @@ diff --git a/src/frontend/app/ui/language/language.component.ts b/src/frontend/app/ui/language/language.component.ts index 3604de83..e8474be9 100644 --- a/src/frontend/app/ui/language/language.component.ts +++ b/src/frontend/app/ui/language/language.component.ts @@ -1,7 +1,7 @@ -import { Component, Input } from '@angular/core'; -import { Config } from '../../../../common/config/public/Config'; -import { CookieNames } from '../../../../common/CookieNames'; -import { CookieService } from 'ngx-cookie-service'; +import {Component, Input} from '@angular/core'; +import {Config} from '../../../../common/config/public/Config'; +import {CookieNames} from '../../../../common/CookieNames'; +import {CookieService} from 'ngx-cookie-service'; @Component({ selector: 'app-language', @@ -12,6 +12,7 @@ export class LanguageComponent { @Input() isDark: boolean; languages: string[] = []; current: string = null; + urlBase = Config.Client.urlBase; constructor(private cookieService: CookieService) { this.languages = Config.Client.languages.sort();