Internacionalization buttons mock
parent
f774459fa5
commit
4a13be34a9
|
@ -23,5 +23,11 @@
|
|||
<div class="button-row">
|
||||
<button mat-flat-button color="primary" type="submit" (keydown.enter)="$event.preventDefault()" [disabled]="!loginObj.username || !loginObj.password" i18n="@@buttonLogin">Iniciar sesión</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<!-- BORRAR DESPUES DE LA DEMO -->
|
||||
<button mat-flat-button (click)="redirectToUrl1()">Español</button>
|
||||
|
||||
<!-- Botón para redirigir a http://localhost:4200/auth/login -->
|
||||
<button mat-flat-button (click)="redirectToUrl2()">Inglés</button>
|
||||
|
|
|
@ -74,4 +74,14 @@ export class LoginComponent {
|
|||
} else
|
||||
this.toastService.success(message, 'Éxito');
|
||||
}
|
||||
|
||||
|
||||
//SOLO PARA LA DEMO BORRAR EN PRODUCCION
|
||||
redirectToUrl1() {
|
||||
window.location.href = 'http://localhost:4201/auth/login';
|
||||
}
|
||||
|
||||
redirectToUrl2() {
|
||||
window.location.href = 'http://localhost:4200/auth/login';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue