Internacionalization buttons mock
parent
f774459fa5
commit
4a13be34a9
|
@ -23,5 +23,11 @@
|
||||||
<div class="button-row">
|
<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>
|
<button mat-flat-button color="primary" type="submit" (keydown.enter)="$event.preventDefault()" [disabled]="!loginObj.username || !loginObj.password" i18n="@@buttonLogin">Iniciar sesión</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</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
|
} else
|
||||||
this.toastService.success(message, 'Éxito');
|
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