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