From 8e40d81f92d2ae3bf8415a792bdba65dca411c00 Mon Sep 17 00:00:00 2001 From: leejinho Date: Wed, 18 Dec 2019 08:49:34 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9B=B9=EB=A7=81=ED=81=AC=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../native/components/top-bar.component.ts | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts index 06916af0..0ff1b622 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/native/components/top-bar.component.ts @@ -110,14 +110,14 @@ export class TopBarComponent implements OnInit, OnDestroy { this.weblink = urlInfo.webLink.filter( weblink => - urlInfo.webLinkAllowedList.filter(type => type === weblink.key) - .length > 0 + urlInfo.webLinkAllowedList + .filter( + type => type !== 'WebLinkMailCnt' && type !== 'WebLinkPaymentCnt' + ) + .filter(type => type === weblink.key).length > 0 ); - if ( - urlInfo.webLinkAllowedList.indexOf('WebLinkMail') > -1 && - urlInfo.webLinkAllowedList.indexOf('WebLinkMailCnt') > -1 - ) { + if (urlInfo.webLinkAllowedList.indexOf('WebLinkMail') > -1) { // 메일 카운트 체크. const link = urlInfo.webLink.filter( weblink => weblink.key === 'WebLinkMailCnt' @@ -149,10 +149,7 @@ export class TopBarComponent implements OnInit, OnDestroy { .subscribe(); } } - if ( - urlInfo.webLinkAllowedList.indexOf('WebLinkPayment') > -1 && - urlInfo.webLinkAllowedList.indexOf('WebLinkPaymentCnt') > -1 - ) { + if (urlInfo.webLinkAllowedList.indexOf('WebLinkPayment') > -1) { // 결제 카운트 체크. const link = urlInfo.webLink.filter( weblink => weblink.key === 'WebLinkPaymentCnt'