From 5eddb7d7938b688f610054d3d0aa5a2267f785a7 Mon Sep 17 00:00:00 2001 From: leejinho Date: Wed, 13 Nov 2019 11:06:13 +0900 Subject: [PATCH] =?UTF-8?q?right=20drawer=20=EC=97=90=20title,=20close=20b?= =?UTF-8?q?utton=20=EC=B6=94=EA=B0=80.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/right-drawer.component.html | 14 ++++++++++++++ .../messenger/components/right-drawer.component.ts | 6 ++++++ .../messenger/components/main.page.component.html | 1 + .../messenger/components/main.page.component.ts | 4 ++++ 4 files changed, 25 insertions(+) diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.html index 979983c7..4004a64d 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.html +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.html @@ -1,3 +1,17 @@ +
+ {{ selectedRightDrawer }} + + + +
diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.ts index e0712a21..65945641 100644 --- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.ts +++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/right-drawer.component.ts @@ -20,6 +20,8 @@ export class RightDrawerComponent implements OnInit { openProfile = new EventEmitter< UserInfo | UserInfoSS | UserInfoF | UserInfoDN >(); + @Output() + closeRightDrawer = new EventEmitter(); RightDrawer = RightDrawer; @@ -30,4 +32,8 @@ export class RightDrawerComponent implements OnInit { onClickOpenProfile(userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN) { this.openProfile.emit(userInfo); } + + onClickClose() { + this.closeRightDrawer.emit(); + } } diff --git a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html index 829641ba..29a0e328 100644 --- a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html +++ b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.html @@ -45,6 +45,7 @@ diff --git a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts index 8d3ad6ce..5f79be55 100644 --- a/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts +++ b/projects/ucap-webmessenger-app/src/app/pages/messenger/components/main.page.component.ts @@ -139,4 +139,8 @@ export class MainPageComponent implements OnInit { }, }); } + + onCloseRightDrawer() { + this.rightDrawer.close(); + } }