Dynamic dropdown.

This commit is contained in:
softsimon
2021-07-28 22:32:13 +03:00
parent ca306f5727
commit 2e5e51d055
16 changed files with 97 additions and 20 deletions

View File

@@ -43,6 +43,11 @@ export class LanguageSelectorComponent implements OnInit {
try {
document.cookie = `lang=${language}; expires=Thu, 18 Dec 2050 12:00:00 UTC; path=/`;
} catch (e) { }
this.document.location.href = `/${language}/${this.stateService.network}`;
if (this.stateService.env.BASE_MODULE === 'mempool') {
this.document.location.href = `/${language}/${this.stateService.network}`;
} else {
this.document.location.href = `/${language}}`;
}
}
}