This commit is contained in:
tiago.kayaya
2021-01-19 09:26:33 +01:00
parent fb1b148c33
commit 08ec18a4d4
250 changed files with 4298 additions and 3234 deletions
@@ -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();
}