Internacionalization buttons mock

pull/6/head
Alvaro Puente Mella 2024-07-30 20:20:05 +02:00
parent f774459fa5
commit 4a13be34a9
2 changed files with 16 additions and 0 deletions

View File

@ -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>

View File

@ -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';
}
}