Commit de41bc6f authored by Muhammadali's avatar Muhammadali

update-

parent 87fe62ad
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "4.0.7", "version": "4.0.8",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -18,6 +18,7 @@ const ModalPhoneNumpad = ({ ...@@ -18,6 +18,7 @@ const ModalPhoneNumpad = ({
dynamicValue, dynamicValue,
position, position,
variant, variant,
extnums,
}) => { }) => {
const boxDialer = window.BoxDialer; const boxDialer = window.BoxDialer;
...@@ -270,7 +271,19 @@ const ModalPhoneNumpad = ({ ...@@ -270,7 +271,19 @@ const ModalPhoneNumpad = ({
</div> </div>
</NumberButton.CallButton> </NumberButton.CallButton>
<NumberButton.CallButtonModal visiblevalue={exNum}> <NumberButton.CallButtonModal visiblevalue={exNum}>
<NumberButton.CallButtonModalInset></NumberButton.CallButtonModalInset> <NumberButton.CallButtonModalInset>
{extnums?.map((item) => (
<p
className='num_item'
onClick={() => {
boxDialer.extnum = item;
setExNum(false);
callButton();
}}>
{item}
</p>
))}
</NumberButton.CallButtonModalInset>
</NumberButton.CallButtonModal> </NumberButton.CallButtonModal>
</NumberButton> </NumberButton>
</> </>
......
...@@ -145,7 +145,7 @@ NumberButton.CallButtonModal = styled.div` ...@@ -145,7 +145,7 @@ NumberButton.CallButtonModal = styled.div`
left: 50%; left: 50%;
background-color: #c9d5d9; background-color: #c9d5d9;
border-radius: 20px; border-radius: 20px;
padding: 15px; padding: 3px;
transition: 0.1s; transition: 0.1s;
${({ visiblevalue }) => ${({ visiblevalue }) =>
visiblevalue visiblevalue
...@@ -162,6 +162,18 @@ NumberButton.CallButtonModalInset = styled.div` ...@@ -162,6 +162,18 @@ NumberButton.CallButtonModalInset = styled.div`
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow-y: scroll; overflow-y: scroll;
.num_item {
color: #000;
transition: 0.2s;
padding: 5px 7px;
border-radius: 10px;
:hover {
background-color: #0000001a;
padding: 5px 7px;
border-radius: 10px;
}
}
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 5px; width: 5px;
} }
......
...@@ -34,6 +34,7 @@ export class BoxDialer { ...@@ -34,6 +34,7 @@ export class BoxDialer {
soundBool; soundBool;
onSipStateChange = {}; onSipStateChange = {};
callEvetsBoxDialer; callEvetsBoxDialer;
extnum
timer = { timer = {
time: 0, time: 0,
type: null, type: null,
......
...@@ -18,6 +18,7 @@ const ControlRenderBX = () => { ...@@ -18,6 +18,7 @@ const ControlRenderBX = () => {
reason: 'free', reason: 'free',
variant: 'bxmini', variant: 'bxmini',
position: 'bottomRight', position: 'bottomRight',
extnums: ['994412860', '770412860'],
}); });
} }
}, []); }, []);
......
...@@ -141,6 +141,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => { ...@@ -141,6 +141,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
onSetDnd={reasonSelect} onSetDnd={reasonSelect}
variant={wsphonedata.variant || 'defaultWidjet'} variant={wsphonedata.variant || 'defaultWidjet'}
position={wsphonedata.position || 'bottomLeft'} position={wsphonedata.position || 'bottomLeft'}
extnums={wsphonedata.extnums}
/> />
<Modal <Modal
......
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