스티커 닫기 이벤트 추가.

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 #stickerSelector
[stickerHistory]="getStickerHistory()" [stickerHistory]="getStickerHistory()"
(selectedSticker)="onSelectedSticker($event)" (selectedSticker)="onSelectedSticker($event)"
(closeSticker)="onShowToggleStickerSelector()"
class="sticker-selector-zone" class="sticker-selector-zone"
></ucap-sticker-selector> ></ucap-sticker-selector>
<div></div> <div></div>

View File

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

View File

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