Commit 562cd777 authored by Muhammadali's avatar Muhammadali

update

parent e9306056
...@@ -16,7 +16,7 @@ const BxMiniWidjetUi = ({ ...@@ -16,7 +16,7 @@ const BxMiniWidjetUi = ({
const colorTypeFunc = ({ widjetState, reason }) => { const colorTypeFunc = ({ widjetState, reason }) => {
console.log('color_type', `${widjetState}_${reason}`); console.log('color_type', `${widjetState}_${reason}`);
switch (`${widjetState}_${reason}`) { switch (`${widjetState}_${reason}`) {
case 'pending': case ('pending_undefined', 'pending_free'):
return { return {
backgroundColor: 'gray', backgroundColor: 'gray',
color: '#fff', color: '#fff',
......
...@@ -60,15 +60,14 @@ const Root = ({ data, onSetDnd }) => { ...@@ -60,15 +60,14 @@ const Root = ({ data, onSetDnd }) => {
const hangupButton = () => { const hangupButton = () => {
boxDialer.hangupButtonClick(); boxDialer.hangupButtonClick();
}; };
window.setWSData = (result) => {
setDataSecond(result);
};
const reasonSelect = async (e) => { const reasonSelect = async (e) => {
let result = await onSetDnd(e); let result = await onSetDnd(e);
console.log(e, 'dropdown_value: ', e);
setDataSecond(result); setDataSecond(result);
console.log(dataSecond, 'select_func'); // data = result;
data = result;
}; };
const selectWidjetType = (type) => { const selectWidjetType = (type) => {
switch (type) { switch (type) {
case 'bxmini': case 'bxmini':
......
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