스티커 닫기 이벤트 추가.

This commit is contained in:
leejinho 2019-12-23 15:23:15 +09:00
parent 53c99cfe68
commit ccc88e194e
3 changed files with 12 additions and 0 deletions

View File

@ -234,6 +234,7 @@
#stickerSelector
[stickerHistory]="getStickerHistory()"
(selectedSticker)="onSelectedSticker($event)"
(closeSticker)="onShowToggleStickerSelector()"
class="sticker-selector-zone"
></ucap-sticker-selector>
<div></div>

View File

@ -341,6 +341,10 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
this.selectedSticker = undefined;
this.firstcheckReadHere = true;
if (!!this.chatForm) {
this.chatForm.replyForm.reset();
}
}
get _roomUserInfos() {

View File

@ -18,6 +18,9 @@ export class StickerSelectorComponent implements OnInit {
@Output()
selectedSticker = new EventEmitter<StickerFilesInfo>();
@Output()
closeSticker = new EventEmitter();
stickerBasePath = 'assets/sticker/';
stickerInfoList: StickerInfo[] = [];
stickerFileInfoList: StickerFilesInfo[] = [];
@ -87,4 +90,8 @@ export class StickerSelectorComponent implements OnInit {
this.currentSticker = sticker;
this.selectedSticker.emit(sticker);
}
onClickClose() {
this.closeSticker.emit();
}
}