스티커 닫기 이벤트 추가.
This commit is contained in:
parent
53c99cfe68
commit
ccc88e194e
|
@ -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>
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user