From 50f24b8b47a4e0d543e0a3f118a07afb41954fc3 Mon Sep 17 00:00:00 2001 From: Richard Park Date: Fri, 15 Nov 2019 13:20:01 +0900 Subject: [PATCH] tab content is modified --- .../components/left-side.component.html | 38 ++++++++++++------- .../components/left-side.component.scss | 12 ++++-- .../components/left-side.component.ts | 20 +++++++++- 3 files changed, 53 insertions(+), 17 deletions(-) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html index 28ec68e9..f5bb42f0 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/left-side.component.html @@ -25,11 +25,6 @@ - @@ -66,7 +61,6 @@ - @@ -92,12 +86,6 @@ - @@ -127,9 +115,33 @@ - + +
+
+ +
+ + + +
+ (); + @ViewChildren('tabs') tabs: QueryList>; + badgeChatUnReadCount$: Observable; /** 조직도에서 부서원 선택 */ @@ -134,6 +144,14 @@ export class LeftSideComponent implements OnInit { onSelectedTabChange(event: MatTabChangeEvent) { this.setFabInitial(event.tab.ariaLabel); + + this.tabs.forEach(tab => { + if (`tabs-${event.index}` === tab.nativeElement.id) { + tab.nativeElement.style.display = 'block'; + } else { + tab.nativeElement.style.display = 'none'; + } + }); } setFabInitial(type: string) { switch (type) {