Release v1.8.4 #47

Merged
hardi merged 1 commits from release/v1.8.4 into master 2018-11-24 14:40:20 +01:00
2 changed files with 6 additions and 1 deletions

View File

@ -38,7 +38,8 @@ export class LoginComponent implements OnInit {
this.router.navigate([this.returnUrl]);
},
error => {
this.snackBarService.showError(error._body, 15000);
// TODO: return i18n key from backend to use translate error method
this.snackBarService.showUntranslatedError(error.error, 15000);
this.loading = false;
});
}

View File

@ -42,4 +42,8 @@ export class SnackBarService {
});
});
}
showUntranslatedError(message: string, duration?: number) {
return this.show(message, 'OK', duration, ['custom-snack-bar', 'label-danger']);
}
}