|
|
@ -14,8 +14,8 @@ export class UserPreferenceComponent implements OnInit {
|
|
|
|
public username: string;
|
|
|
|
public username: string;
|
|
|
|
public selectedLang: string;
|
|
|
|
public selectedLang: string;
|
|
|
|
public availableLanguages = AvailableLanguages;
|
|
|
|
public availableLanguages = AvailableLanguages;
|
|
|
|
public qrCode: string;
|
|
|
|
//public qrCode: string;
|
|
|
|
public qrCodeEnabled: boolean;
|
|
|
|
//public qrCodeEnabled: boolean;
|
|
|
|
|
|
|
|
|
|
|
|
constructor(private authService: AuthService,
|
|
|
|
constructor(private authService: AuthService,
|
|
|
|
private readonly translate: TranslateService,
|
|
|
|
private readonly translate: TranslateService,
|
|
|
@ -31,13 +31,13 @@ export class UserPreferenceComponent implements OnInit {
|
|
|
|
const customization = await this.settingsService.getCustomization().toPromise();
|
|
|
|
const customization = await this.settingsService.getCustomization().toPromise();
|
|
|
|
|
|
|
|
|
|
|
|
const accessToken = await this.identityService.getAccessToken().toPromise();
|
|
|
|
const accessToken = await this.identityService.getAccessToken().toPromise();
|
|
|
|
this.qrCode = `${customization.applicationUrl}|${accessToken}`;
|
|
|
|
//this.qrCode = `${customization.applicationUrl}|${accessToken}`;
|
|
|
|
|
|
|
|
|
|
|
|
if(!customization.applicationUrl) {
|
|
|
|
//if(!customization.applicationUrl) {
|
|
|
|
this.qrCodeEnabled = false;
|
|
|
|
// this.qrCodeEnabled = false;
|
|
|
|
} else {
|
|
|
|
//} else {
|
|
|
|
this.qrCodeEnabled = true;
|
|
|
|
// this.qrCodeEnabled = true;
|
|
|
|
}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
const selectedLang = this.storage.get("Language");
|
|
|
|
const selectedLang = this.storage.get("Language");
|
|
|
|
if (selectedLang) {
|
|
|
|
if (selectedLang) {
|
|
|
|