로그인 시에만 메일, 결재 뱃지 카운트 하도록 수정.

This commit is contained in:
leejinho 2020-01-14 08:27:53 +09:00
parent 3e26df05c3
commit 62033f3f90

View File

@ -29,7 +29,6 @@ import {
KEY_URL_INFO,
LoginInfo,
KEY_LOGIN_INFO,
KEY_LOGIN_RES_INFO,
KEY_VER_INFO
} from '@app/types';
import {
@ -100,7 +99,6 @@ export class TopBarComponent implements OnInit, OnDestroy {
private sessionStorageService: SessionStorageService,
private daesangApiService: DaesangApiService,
private daesangProtocolService: DaesangProtocolService,
private changeDetectorRef: ChangeDetectorRef,
@Inject(DOCUMENT) private document: Document,
private logger: NGXLogger
) {}
@ -123,7 +121,7 @@ export class TopBarComponent implements OnInit, OnDestroy {
>(KEY_VER_INFO);
// WebLink init..
this.initWebLink();
this.initWebLink(loginRes);
})
)
.subscribe();
@ -161,11 +159,8 @@ export class TopBarComponent implements OnInit, OnDestroy {
}
}
initWebLink(): void {
const loginRes = this.sessionStorageService.get<LoginResponse>(
KEY_LOGIN_RES_INFO
);
initWebLink(loginRes: LoginResponse): void {
if (!!loginRes) {
const urlInfo: DaesangUrlInfoResponse = this.sessionStorageService.get<
DaesangUrlInfoResponse
>(KEY_URL_INFO);
@ -244,6 +239,7 @@ export class TopBarComponent implements OnInit, OnDestroy {
}
}
}
}
onClickClose() {
this.nativeService.windowClose();