Skip to content

Commit

Permalink
Melhora mensagens de erro
Browse files Browse the repository at this point in the history
Signed-off-by: DaviMarinho <[email protected]>
  • Loading branch information
DaviMarinho committed Nov 16, 2023
1 parent 12e8a9e commit 9813671
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/register/register.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class RegisterComponent implements OnInit {
});
},
error: (error) => {
console.error(error);
this.alertService.showMessage("error", "Erro", error.error.detail);
},
});
}
Expand All @@ -66,7 +66,7 @@ export class RegisterComponent implements OnInit {
this.navigator('/activeAccount');
},
error: (error) => {
console.error(error);
this.alertService.showMessage("error", "Erro", error.error.detail);
},
});
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/reset-password/reset-password.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<div class="mb-4">
<input pInputText class="w-64 h-8 border rounded-lg border-gray-300 pl-4 md:w-96 md:h-10" type="password" formControlName="confirmPassword" name="confirmPassword" placeholder="Confirmar Senha" required>
</div>
<button class="p-2 bg-blue-brand rounded-lg justify-center mb-4 text-white" type="submit">Enviar código</button>
<button class="p-2 bg-blue-brand rounded-lg justify-center mb-4 text-white" type="submit">Alterar senha</button>
</form>
</div>
2 changes: 1 addition & 1 deletion src/app/pages/reset-password/reset-password.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class ResetPasswordComponent implements OnInit {
this.navigator('/login');
},
error: (error) => {
console.error(error);
this.alertService.showMessage("error", "Erro", "Os campos estão incorretos, preencha os campos correctamente.");
},
});
} else {
Expand Down
3 changes: 1 addition & 2 deletions src/app/pages/video/video.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,10 @@ export class VideoComponent implements OnInit {
findAll(): void {
this.videoService.findAll().subscribe({
next: (data) => {
// console.log(data);
this.videosEduplay = data.body?.videoList || [];
},
error: (error) => {
console.error(error);
console.log(error);
},
}
);
Expand Down

0 comments on commit 9813671

Please sign in to comment.