mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove 404 check in demo shell
This commit is contained in:
@@ -38,10 +38,7 @@ export class AppComponent implements OnInit {
|
||||
this.pageTitleService.setTitle('title');
|
||||
|
||||
this.alfrescoApiService.getInstance().on('error', (error) => {
|
||||
|
||||
if (error.status === 404) {
|
||||
this.router.navigate(['/error', error.status]);
|
||||
} else if (error.status === 401) {
|
||||
if (error.status === 401) {
|
||||
if (!this.authenticationService.isLoggedIn()) {
|
||||
this.router.navigate(['/login']);
|
||||
}
|
||||
|
Reference in New Issue
Block a user