mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-827] - Added check for exclude error redirect to login for some … (#1790)
* [ACS-827] - Added check for exclude error redirect to login for some urls * Updated versions Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
This commit is contained in:
Generated
+1468
-2102
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -25,10 +25,10 @@
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@alfresco/adf-content-services": "4.1.0",
|
||||
"@alfresco/adf-core": "4.1.0",
|
||||
"@alfresco/adf-extensions": "4.1.0",
|
||||
"@alfresco/js-api": "4.1.0",
|
||||
"@alfresco/adf-content-services": "4.2.0-d36fd9d5f1435f1798c20820bd6a8cf981a20b6d",
|
||||
"@alfresco/adf-core": "4.2.0-d36fd9d5f1435f1798c20820bd6a8cf981a20b6d",
|
||||
"@alfresco/adf-extensions": "4.2.0-d36fd9d5f1435f1798c20820bd6a8cf981a20b6d",
|
||||
"@alfresco/js-api": "4.2.0-f9c54eaf48fe91e8d4671269cb5d6b8d00445bc0",
|
||||
"@angular/animations": "10.0.4",
|
||||
"@angular/cdk": "^10.0.2",
|
||||
"@angular/common": "10.0.4",
|
||||
@@ -58,7 +58,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@alfresco/adf-cli": "4.1.0",
|
||||
"@alfresco/adf-testing": "4.1.0",
|
||||
"@alfresco/adf-testing": "4.2.0-d36fd9d5f1435f1798c20820bd6a8cf981a20b6d",
|
||||
"@angular-custom-builders/lite-serve": "^0.2.2",
|
||||
"@angular-devkit/build-angular": "~0.1001.4",
|
||||
"@angular-devkit/build-ng-packagr": "~0.1001.3",
|
||||
|
||||
@@ -78,8 +78,8 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
this.alfrescoApiService.getInstance().on('error', (error: { status: number }) => {
|
||||
if (error.status === 401) {
|
||||
this.alfrescoApiService.getInstance().on('error', (error: { status: number; response: any }) => {
|
||||
if (error.status === 401 && !this.alfrescoApiService.isExcludedErrorListener(error?.response?.req?.url)) {
|
||||
if (!this.authenticationService.isLoggedIn()) {
|
||||
this.store.dispatch(new CloseModalDialogsAction());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user