right drawer 에 title, close button 추가.
This commit is contained in:
parent
88f103610a
commit
5eddb7d793
|
@ -1,3 +1,17 @@
|
||||||
|
<div>
|
||||||
|
<span>{{ selectedRightDrawer }}</span>
|
||||||
|
<span>
|
||||||
|
<button
|
||||||
|
mat-button
|
||||||
|
matSuffix
|
||||||
|
mat-icon-button
|
||||||
|
aria-label="Close"
|
||||||
|
(click)="onClickClose()"
|
||||||
|
>
|
||||||
|
<mat-icon>close</mat-icon>
|
||||||
|
</button>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
<ng-container *ngIf="selectedRightDrawer" [ngSwitch]="selectedRightDrawer">
|
<ng-container *ngIf="selectedRightDrawer" [ngSwitch]="selectedRightDrawer">
|
||||||
<app-layout-chat-right-drawer-file-box *ngSwitchCase="RightDrawer.FileBox">
|
<app-layout-chat-right-drawer-file-box *ngSwitchCase="RightDrawer.FileBox">
|
||||||
</app-layout-chat-right-drawer-file-box>
|
</app-layout-chat-right-drawer-file-box>
|
||||||
|
|
|
@ -20,6 +20,8 @@ export class RightDrawerComponent implements OnInit {
|
||||||
openProfile = new EventEmitter<
|
openProfile = new EventEmitter<
|
||||||
UserInfo | UserInfoSS | UserInfoF | UserInfoDN
|
UserInfo | UserInfoSS | UserInfoF | UserInfoDN
|
||||||
>();
|
>();
|
||||||
|
@Output()
|
||||||
|
closeRightDrawer = new EventEmitter();
|
||||||
|
|
||||||
RightDrawer = RightDrawer;
|
RightDrawer = RightDrawer;
|
||||||
|
|
||||||
|
@ -30,4 +32,8 @@ export class RightDrawerComponent implements OnInit {
|
||||||
onClickOpenProfile(userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN) {
|
onClickOpenProfile(userInfo: UserInfo | UserInfoSS | UserInfoF | UserInfoDN) {
|
||||||
this.openProfile.emit(userInfo);
|
this.openProfile.emit(userInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClickClose() {
|
||||||
|
this.closeRightDrawer.emit();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
<app-layout-messenger-right-drawer
|
<app-layout-messenger-right-drawer
|
||||||
[selectedRightDrawer]="selectedRightDrawer$ | async"
|
[selectedRightDrawer]="selectedRightDrawer$ | async"
|
||||||
(openProfile)="onClickOpenProfile($event)"
|
(openProfile)="onClickOpenProfile($event)"
|
||||||
|
(closeRightDrawer)="onCloseRightDrawer($event)"
|
||||||
>
|
>
|
||||||
</app-layout-messenger-right-drawer>
|
</app-layout-messenger-right-drawer>
|
||||||
</mat-drawer>
|
</mat-drawer>
|
||||||
|
|
|
@ -139,4 +139,8 @@ export class MainPageComponent implements OnInit {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onCloseRightDrawer() {
|
||||||
|
this.rightDrawer.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user