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