mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA-1569] Close dialogs on logout (#621)
* Close dialogs on logout * [ACA-1569] e2e tests * [ACA-1569] review required change on e2e test
This commit is contained in:
committed by
Denys Vuika
parent
aafa606ceb
commit
6e98721a62
@@ -43,6 +43,7 @@ import {
|
||||
} from './store/actions';
|
||||
import { AppStore, AppState, INITIAL_APP_STATE } from './store/states/app.state';
|
||||
import { filter } from 'rxjs/operators';
|
||||
import { MatDialog } from '@angular/material';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
@@ -59,7 +60,8 @@ export class AppComponent implements OnInit {
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private authenticationService: AuthenticationService,
|
||||
private uploadService: UploadService,
|
||||
private extensions: AppExtensionService
|
||||
private extensions: AppExtensionService,
|
||||
private dialogRef: MatDialog
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -68,6 +70,8 @@ export class AppComponent implements OnInit {
|
||||
if (!this.authenticationService.isLoggedIn()) {
|
||||
this.authenticationService.setRedirect({ provider: 'ECM', url: this.router.url });
|
||||
this.router.navigate(['/login']);
|
||||
|
||||
this.dialogRef.closeAll();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user