Commit 1f1f869f authored by Muhammadali's avatar Muhammadali

update version: 0.5.7

parent 7b173ea7
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.5.6", "version": "0.5.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -5,7 +5,6 @@ import Block from './style'; ...@@ -5,7 +5,6 @@ import Block from './style';
import { data as mockData } from '../WidjetButton/mockTest'; import { data as mockData } from '../WidjetButton/mockTest';
const CallCardDropDown = ({ hiddenState, selectUserFunc }) => { const CallCardDropDown = ({ hiddenState, selectUserFunc }) => {
const [inputValue, setinputValue] = useState(''); const [inputValue, setinputValue] = useState('');
return ( return (
<Block onClick={(e) => e.stopPropagation()} hiddenState={hiddenState}> <Block onClick={(e) => e.stopPropagation()} hiddenState={hiddenState}>
...@@ -16,7 +15,7 @@ const CallCardDropDown = ({ hiddenState, selectUserFunc }) => { ...@@ -16,7 +15,7 @@ const CallCardDropDown = ({ hiddenState, selectUserFunc }) => {
/> />
<Block.Inset hiddenState={hiddenState}> <Block.Inset hiddenState={hiddenState}>
{mockData.map( {mockData.map(
({ NAME, UF_PHONE_INNER, LAST_NAME }) => ({ NAME, UF_PHONE_INNER, LAST_NAME }, index) =>
(NAME.toLocaleLowerCase().includes( (NAME.toLocaleLowerCase().includes(
inputValue.toLocaleLowerCase(), inputValue.toLocaleLowerCase(),
) || ) ||
...@@ -24,7 +23,9 @@ const CallCardDropDown = ({ hiddenState, selectUserFunc }) => { ...@@ -24,7 +23,9 @@ const CallCardDropDown = ({ hiddenState, selectUserFunc }) => {
inputValue.toLocaleLowerCase(), inputValue.toLocaleLowerCase(),
) || ) ||
UF_PHONE_INNER.toString().includes(inputValue.toString())) && ( UF_PHONE_INNER.toString().includes(inputValue.toString())) && (
<Block.Section onClick={() => selectUserFunc(UF_PHONE_INNER)}> <Block.Section
key={index}
onClick={() => selectUserFunc(UF_PHONE_INNER)}>
<p className='name'> <p className='name'>
{NAME} {LAST_NAME} {NAME} {LAST_NAME}
</p> </p>
......
...@@ -415,6 +415,15 @@ export class BoxDialer { ...@@ -415,6 +415,15 @@ export class BoxDialer {
// toast.error('Please enter another number'); // toast.error('Please enter another number');
// return; // return;
// } // }
this.callBxMethods({
bxMethodName: 'CallCardSetUiState',
bxFuncParams: { uiState: 'connectingOutgoing' },
callback: (e) => {
console.log(e, `CallCardSetUiState method done ${e}`);
},
});
let phoneNumberString = phoneNumber.toString(); let phoneNumberString = phoneNumber.toString();
if (phoneNumberString.length) { if (phoneNumberString.length) {
this.oSipSessionCall = this.oSipStack.newSession( this.oSipSessionCall = this.oSipStack.newSession(
......
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