mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
save
This commit is contained in:
@@ -342,7 +342,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
if (!this.validateInput()) {
|
||||
_context2.next = 13;
|
||||
_context2.next = 12;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -357,29 +357,28 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
||||
|
||||
case 4:
|
||||
if (!_context2.sent) {
|
||||
_context2.next = 10;
|
||||
_context2.next = 9;
|
||||
break;
|
||||
}
|
||||
|
||||
this.loginRocketChat();
|
||||
this.router.navigate(['/home/events']);
|
||||
this.presentAlert('1');
|
||||
_context2.next = 11;
|
||||
_context2.next = 10;
|
||||
break;
|
||||
|
||||
case 10:
|
||||
case 9:
|
||||
//this.toastService.presentToast('Não foi possível fazer login"');
|
||||
this.presentAlert('O nome de utilizador e palavra-passe estão incorretas ou verifique a sua conexão com a internet e volte a tentar.');
|
||||
|
||||
case 11:
|
||||
_context2.next = 14;
|
||||
case 10:
|
||||
_context2.next = 13;
|
||||
break;
|
||||
|
||||
case 13:
|
||||
case 12:
|
||||
//this.toastService.presentToast('Preencha todos campos');
|
||||
this.presentAlert('Por favor, insira o seu nome de utilizador e palavra-passe.');
|
||||
|
||||
case 14:
|
||||
case 13:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user