Commit a138da82 authored by Muhammadali's avatar Muhammadali

update verison: 0.1.7

parent 07a46f6b
{
"name": "boxdialer",
"version": "0.1.6",
"version": "0.1.7",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -88,13 +88,15 @@ const Modal = ({
</div>
<div
className='transferAreaIcon'
onClick={() => setTransferModel(!transferModel)}
>
onClick={() => {
boxDialer.selectUser();
// setTransferModel(!transferModel)
}}>
<SendToMobileIcon style={{ color: '#fff' }} />
<CallCardDropDown
{/* <CallCardDropDown
hiddenState={transferModel}
selectUserFunc={selectUserFunc}
/>
/> */}
</div>
<div>
<DialpadIcon style={{ color: '#fff' }} />
......@@ -138,13 +140,15 @@ const Modal = ({
</div>
<div
className='transferAreaIcon'
onClick={() => setTransferModel(!transferModel)}
>
onClick={() => {
boxDialer.selectUser();
// setTransferModel(!transferModel);
}}>
<SendToMobileIcon style={{ color: '#fff' }} />
<CallCardDropDown
{/* <CallCardDropDown
hiddenState={transferModel}
selectUserFunc={selectUserFunc}
/>
/> */}
</div>
<div>
<DialpadIcon style={{ color: '#fff' }} />
......
......@@ -168,7 +168,6 @@ const WidjetButton = ({ data, onSetDnd }) => {
id={'responsible-button'}
onClick={() => {
phoneModal ? setPhoneModal(false) : setPhoneModal(true);
boxDialer.selectUser()
}}>
<WidjetBlock.AccauntInfo status={dynamicValue}>
<div className='left'>
......
......@@ -348,7 +348,7 @@ export class BoxDialer {
}
}
selectUser(param) {
selectUser() {
BX.Runtime.loadExtension('ui.entity-selector').then((exports) => {
const { Dialog, TagSelector } = exports;
......@@ -360,6 +360,7 @@ export class BoxDialer {
entities: [
{
id: 'user', // пользователи
options: { selectFields: ['ufPhoneInner'] },
},
{
id: 'department', // структура компании: выбор только пользователей
......
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