Commit 40e6ecc7 authored by Muhammadali's avatar Muhammadali

verison

parent f3db2f02
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.1.3", "version": "0.1.4",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -166,9 +166,9 @@ const WidjetButton = ({ data, onSetDnd }) => { ...@@ -166,9 +166,9 @@ const WidjetButton = ({ data, onSetDnd }) => {
<> <>
<WidjetBlock <WidjetBlock
id={'responsible-button'} id={'responsible-button'}
onClick={(e) => { onClick={() => {
boxDialer.selectUser(e)
phoneModal ? setPhoneModal(false) : setPhoneModal(true); phoneModal ? setPhoneModal(false) : setPhoneModal(true);
boxDialer.selectUser()
}}> }}>
<WidjetBlock.AccauntInfo status={dynamicValue}> <WidjetBlock.AccauntInfo status={dynamicValue}>
<div className='left'> <div className='left'>
......
...@@ -352,9 +352,8 @@ export class BoxDialer { ...@@ -352,9 +352,8 @@ export class BoxDialer {
BX.Runtime.loadExtension('ui.entity-selector').then((exports) => { BX.Runtime.loadExtension('ui.entity-selector').then((exports) => {
const { Dialog, TagSelector } = exports; const { Dialog, TagSelector } = exports;
const button = param;
const dialog = new BX.UI.EntitySelector.Dialog({ const dialog = new BX.UI.EntitySelector.Dialog({
targetNode: button, // targetNode: button,
enableSearch: true, enableSearch: true,
context: 'MY_MODULE_CONTEXT', context: 'MY_MODULE_CONTEXT',
entities: [ entities: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment