로그인 시에만 메일, 결재 뱃지 카운트 하도록 수정.
This commit is contained in:
parent
3e26df05c3
commit
62033f3f90
@ -29,7 +29,6 @@ import {
|
|||||||
KEY_URL_INFO,
|
KEY_URL_INFO,
|
||||||
LoginInfo,
|
LoginInfo,
|
||||||
KEY_LOGIN_INFO,
|
KEY_LOGIN_INFO,
|
||||||
KEY_LOGIN_RES_INFO,
|
|
||||||
KEY_VER_INFO
|
KEY_VER_INFO
|
||||||
} from '@app/types';
|
} from '@app/types';
|
||||||
import {
|
import {
|
||||||
@ -100,7 +99,6 @@ export class TopBarComponent implements OnInit, OnDestroy {
|
|||||||
private sessionStorageService: SessionStorageService,
|
private sessionStorageService: SessionStorageService,
|
||||||
private daesangApiService: DaesangApiService,
|
private daesangApiService: DaesangApiService,
|
||||||
private daesangProtocolService: DaesangProtocolService,
|
private daesangProtocolService: DaesangProtocolService,
|
||||||
private changeDetectorRef: ChangeDetectorRef,
|
|
||||||
@Inject(DOCUMENT) private document: Document,
|
@Inject(DOCUMENT) private document: Document,
|
||||||
private logger: NGXLogger
|
private logger: NGXLogger
|
||||||
) {}
|
) {}
|
||||||
@ -123,7 +121,7 @@ export class TopBarComponent implements OnInit, OnDestroy {
|
|||||||
>(KEY_VER_INFO);
|
>(KEY_VER_INFO);
|
||||||
|
|
||||||
// WebLink init..
|
// WebLink init..
|
||||||
this.initWebLink();
|
this.initWebLink(loginRes);
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
@ -161,11 +159,8 @@ export class TopBarComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
initWebLink(): void {
|
initWebLink(loginRes: LoginResponse): void {
|
||||||
const loginRes = this.sessionStorageService.get<LoginResponse>(
|
if (!!loginRes) {
|
||||||
KEY_LOGIN_RES_INFO
|
|
||||||
);
|
|
||||||
|
|
||||||
const urlInfo: DaesangUrlInfoResponse = this.sessionStorageService.get<
|
const urlInfo: DaesangUrlInfoResponse = this.sessionStorageService.get<
|
||||||
DaesangUrlInfoResponse
|
DaesangUrlInfoResponse
|
||||||
>(KEY_URL_INFO);
|
>(KEY_URL_INFO);
|
||||||
@ -244,6 +239,7 @@ export class TopBarComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
onClickClose() {
|
onClickClose() {
|
||||||
this.nativeService.windowClose();
|
this.nativeService.windowClose();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user