Commit a138da82 authored by Muhammadali's avatar Muhammadali

update verison: 0.1.7

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