File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/im/install/js/im/mixin/src/dialog/clickOnMention.js
Back
import { EventEmitter } from 'main.core.events'; import { EventType } from "im.const"; //openDialog is in dialogCore export const DialogClickOnMention = { created() { EventEmitter.subscribe(EventType.dialog.clickOnMention, this.onClickOnMention); }, beforeDestroy() { EventEmitter.unsubscribe(EventType.dialog.clickOnMention, this.onClickOnMention); }, methods: { onClickOnMention({data: event}) { if (event.type === 'USER') { this.openProfile(event.value); } else if (event.type === 'CHAT') { this.openDialog(event.value); } else if (event.type === 'CALL') { this.openPhoneMenu(event.value); } }, openProfile() { //TODO }, openPhoneMenu() { //TODO } } };
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings