2019-11-12 09:10:38 +00:00
|
|
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
2019-11-11 05:31:26 +00:00
|
|
|
import { RightDrawer } from '@app/types';
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'app-layout-messenger-right-drawer',
|
|
|
|
templateUrl: './right-drawer.component.html',
|
2019-12-26 08:34:52 +00:00
|
|
|
styleUrls: ['./right-drawer.component.scss']
|
2019-11-11 05:31:26 +00:00
|
|
|
})
|
|
|
|
export class RightDrawerComponent implements OnInit {
|
|
|
|
@Input()
|
|
|
|
selectedRightDrawer: RightDrawer;
|
|
|
|
|
2019-11-12 09:10:38 +00:00
|
|
|
@Output()
|
2019-12-26 08:34:52 +00:00
|
|
|
openProfile = new EventEmitter<{
|
2020-01-02 06:58:16 +00:00
|
|
|
userSeq: number;
|
2019-12-26 08:34:52 +00:00
|
|
|
}>();
|
2019-11-13 02:06:13 +00:00
|
|
|
@Output()
|
|
|
|
closeRightDrawer = new EventEmitter();
|
2019-11-12 09:10:38 +00:00
|
|
|
|
2019-11-11 05:31:26 +00:00
|
|
|
RightDrawer = RightDrawer;
|
|
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
ngOnInit() {}
|
2019-11-12 09:10:38 +00:00
|
|
|
|
2020-01-02 06:58:16 +00:00
|
|
|
onClickOpenProfile(userSeq: number) {
|
|
|
|
this.openProfile.emit({ userSeq });
|
2019-11-12 09:10:38 +00:00
|
|
|
}
|
2019-11-13 02:06:13 +00:00
|
|
|
|
|
|
|
onClickClose() {
|
|
|
|
this.closeRightDrawer.emit();
|
|
|
|
}
|
2019-11-11 05:31:26 +00:00
|
|
|
}
|