close all dialogs when force logout
This commit is contained in:
parent
5a84657d53
commit
ad78e23303
|
@ -93,7 +93,7 @@ import {
|
|||
UCAP_NATIVE_SERVICE,
|
||||
NotificationType
|
||||
} from '@ucap-webmessenger/native';
|
||||
import { StringUtil } from '@ucap-webmessenger/ui';
|
||||
import { StringUtil, DialogService } from '@ucap-webmessenger/ui';
|
||||
import {
|
||||
UmgProtocolService,
|
||||
SSVC_TYPE_UMG_NOTI,
|
||||
|
@ -131,6 +131,7 @@ export class AppNotificationService {
|
|||
private localStorageService: LocalStorageService,
|
||||
private sessionStorageService: SessionStorageService,
|
||||
@Inject(UCAP_NATIVE_SERVICE) private nativeService: NativeService,
|
||||
private dialogService: DialogService,
|
||||
private store: Store<any>,
|
||||
private logger: NGXLogger
|
||||
) {}
|
||||
|
@ -174,6 +175,8 @@ export class AppNotificationService {
|
|||
default:
|
||||
break;
|
||||
}
|
||||
this.dialogService.closeAll();
|
||||
|
||||
this.store.dispatch(AuthenticationStore.loginRedirect());
|
||||
})
|
||||
)
|
||||
|
|
|
@ -37,4 +37,8 @@ export class DialogService {
|
|||
.subscribe();
|
||||
});
|
||||
}
|
||||
|
||||
closeAll() {
|
||||
this.matDialog.closeAll();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user