fix link
This commit is contained in:
parent
bb96636571
commit
88efd55aee
@ -14,8 +14,8 @@
|
|||||||
<mat-icon>arrow_drop_down</mat-icon>
|
<mat-icon>arrow_drop_down</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<mat-menu #menu="matMenu">
|
<mat-menu #menu="matMenu">
|
||||||
<a *ngFor="let locale of locales" mat-menu-item
|
<a *ngFor="let locale of locales" mat-menu-item (click)="setLocale(locale)">{{'locale.' + locale + '.long' |
|
||||||
(click)="setLocale(locale)">{{'locale.' + locale + '.long' | i18n}}</a>
|
i18n}}</a>
|
||||||
</mat-menu>
|
</mat-menu>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</mat-toolbar>
|
</mat-toolbar>
|
||||||
@ -36,7 +36,7 @@
|
|||||||
<a routerLink="/tokens" mat-list-item>
|
<a routerLink="/tokens" mat-list-item>
|
||||||
<mat-icon>card_giftcard</mat-icon> {{'tokens.redeem' | i18n}}
|
<mat-icon>card_giftcard</mat-icon> {{'tokens.redeem' | i18n}}
|
||||||
</a>
|
</a>
|
||||||
<a href="https://token.bstly.de" target="_blank" mat-list-item>
|
<a (click)="openExternal('https://membership.bstly.de')" mat-list-item>
|
||||||
<mat-icon>shopping_cart</mat-icon> {{'tokens.get' | i18n}}<mat-icon style="font-size: 1em;">open_in_new
|
<mat-icon>shopping_cart</mat-icon> {{'tokens.get' | i18n}}<mat-icon style="font-size: 1em;">open_in_new
|
||||||
</mat-icon>
|
</mat-icon>
|
||||||
</a>
|
</a>
|
||||||
|
@ -63,6 +63,10 @@ export class AppComponent {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openExternal(url) {
|
||||||
|
window.open(url, '_blank');
|
||||||
|
}
|
||||||
|
|
||||||
@HostListener('window:resize', ['$event'])
|
@HostListener('window:resize', ['$event'])
|
||||||
onResize(event) {
|
onResize(event) {
|
||||||
if(event.target.innerWidth < 768) {
|
if(event.target.innerWidth < 768) {
|
||||||
|
@ -53,10 +53,6 @@ export class TokensComponent implements OnInit {
|
|||||||
if (params.token) {
|
if (params.token) {
|
||||||
this.itemService.redeemSecret(params.token).subscribe((data: any) => {
|
this.itemService.redeemSecret(params.token).subscribe((data: any) => {
|
||||||
this.update();
|
this.update();
|
||||||
this.router.navigate(
|
|
||||||
['.'],
|
|
||||||
{ relativeTo: this.route }
|
|
||||||
);
|
|
||||||
}, error => {
|
}, error => {
|
||||||
this.form.get('token').patchValue(params.token);
|
this.form.get('token').patchValue(params.token);
|
||||||
if (error.status == 410) {
|
if (error.status == 410) {
|
||||||
|
@ -264,7 +264,7 @@
|
|||||||
"tokens": {
|
"tokens": {
|
||||||
".": "Tokens",
|
".": "Tokens",
|
||||||
"enter": "Token eingeben",
|
"enter": "Token eingeben",
|
||||||
"get": "Mitmachen",
|
"get": "Tokens",
|
||||||
"invalid": "Das Token ist leider nicht gültig.",
|
"invalid": "Das Token ist leider nicht gültig.",
|
||||||
"provide-valid": "Bitte gebe ein gültiges Token ein.",
|
"provide-valid": "Bitte gebe ein gültiges Token ein.",
|
||||||
"redeem": "Tokens einlösen",
|
"redeem": "Tokens einlösen",
|
||||||
|
Loading…
Reference in New Issue
Block a user