close all dialogs when force logout

This commit is contained in:
richard-loafle 2020-02-04 13:25:09 +09:00
parent 5a84657d53
commit ad78e23303
2 changed files with 8 additions and 1 deletions

View File

@ -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());
})
)

View File

@ -37,4 +37,8 @@ export class DialogService {
.subscribe();
});
}
closeAll() {
this.matDialog.closeAll();
}
}