update
This commit is contained in:
@@ -46,7 +46,8 @@
|
||||
<a *ngIf="!auth.authenticated" routerLink="/register" mat-raised-button color="accent">
|
||||
<mat-icon>how_to_reg</mat-icon> {{'register' | i18n}}
|
||||
</a>
|
||||
<a *ngIf="!auth.authenticated" routerLink="/login" mat-raised-button color="primary">
|
||||
<a *ngIf="!auth.authenticated" routerLink="/login" [queryParams]="{ target:'tokens' }" mat-raised-button
|
||||
color="primary">
|
||||
<mat-icon>login</mat-icon> {{'login' | i18n}}
|
||||
</a>
|
||||
</mat-card-actions>
|
||||
|
||||
@@ -36,7 +36,7 @@ export class TokensComponent implements OnInit {
|
||||
private route: ActivatedRoute) {
|
||||
|
||||
this.currentLocale = this.i18n.getLocale();
|
||||
|
||||
|
||||
this.authService.auth.subscribe(data => {
|
||||
this.auth = data;
|
||||
})
|
||||
@@ -97,7 +97,7 @@ export class TokensComponent implements OnInit {
|
||||
redeem() {
|
||||
if (this.auth.authenticated) {
|
||||
this.itemService.redeem().subscribe((data: any) => {
|
||||
|
||||
this.router.navigate(["/account/info"]);
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user