correction bug sur reception 401 depuis la page horaires
This commit is contained in:
@@ -30,7 +30,11 @@ export class HoursComponent implements OnInit {
|
||||
this.schedRows = Object.keys(datas[0].horaires).length;
|
||||
this.isProcessing = false;
|
||||
}, err => {
|
||||
this.toast.error("Erreur de récupération des horaires");
|
||||
if(err.status == 401) {
|
||||
this.router.navigateByUrl("/login");
|
||||
} else {
|
||||
this.toast.error("Erreur de récupération des horaires");
|
||||
}
|
||||
this.isProcessing = false;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user