Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
BoxDialer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
BoxDialer
Commits
84de9237
Commit
84de9237
authored
Oct 05, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update-
parent
103f99ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
16 deletions
+31
-16
package.json
package.json
+1
-1
index.jsx
src/components/InnerCaller/index.jsx
+23
-11
boxDIaler.js
src/lib/boxDIaler.js
+2
-2
index.jsx
src/root/index.jsx
+5
-2
No files found.
package.json
View file @
84de9237
{
{
"name"
:
"boxdialer"
,
"name"
:
"boxdialer"
,
"version"
:
"3.9.
0
"
,
"version"
:
"3.9.
1
"
,
"description"
:
""
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
"scripts"
:
{
...
...
src/components/InnerCaller/index.jsx
View file @
84de9237
...
@@ -4,7 +4,7 @@ import React from 'react';
...
@@ -4,7 +4,7 @@ import React from 'react';
import
Block
from
'
./style
'
;
import
Block
from
'
./style
'
;
import
{
useTranslator
}
from
'
@eo-locale/react
'
;
import
{
useTranslator
}
from
'
@eo-locale/react
'
;
const
InnerCaller
=
({
hidden
,
modalStat
e
})
=>
{
const
InnerCaller
=
({
hidden
,
typ
e
})
=>
{
const
boxDialer
=
window
.
BoxDialer
;
const
boxDialer
=
window
.
BoxDialer
;
const
translator
=
useTranslator
();
const
translator
=
useTranslator
();
return
(
return
(
...
@@ -16,16 +16,28 @@ const InnerCaller = ({ hidden, modalState }) => {
...
@@ -16,16 +16,28 @@ const InnerCaller = ({ hidden, modalState }) => {
</
p
>
</
p
>
</
div
>
</
div
>
<
div
className=
'bottom'
>
<
div
className=
'bottom'
>
<
button
{
type
==
'
connected
'
||
type
==
'
connecting
'
?
(
className=
'button light_blue nocopy'
<>
onClick=
{
()
=>
boxDialer
.
answerButtonClick
()
}
>
<
button
{
translator
.
translate
(
'
ANSWER
'
)
}
className=
'button red nocopy'
</
button
>
onClick=
{
()
=>
boxDialer
.
hangupButtonClick
()
}
>
<
button
{
translator
.
translate
(
'
REJECT
'
)
}
className=
'button red nocopy'
</
button
>
onClick=
{
()
=>
boxDialer
.
hangupButtonClick
()
}
>
</>
{
translator
.
translate
(
'
REJECT
'
)
}
)
:
(
</
button
>
<>
<
button
className=
'button light_blue nocopy'
onClick=
{
()
=>
boxDialer
.
answerButtonClick
()
}
>
{
translator
.
translate
(
'
ANSWER
'
)
}
</
button
>
<
button
className=
'button red nocopy'
onClick=
{
()
=>
boxDialer
.
hangupButtonClick
()
}
>
{
translator
.
translate
(
'
REJECT
'
)
}
</
button
>
</>
)
}
</
div
>
</
div
>
</
Block
>
</
Block
>
);
);
...
...
src/lib/boxDIaler.js
View file @
84de9237
...
@@ -88,7 +88,7 @@ export class BoxDialer {
...
@@ -88,7 +88,7 @@ export class BoxDialer {
// window.innerCallBegin(true);
// window.innerCallBegin(true);
this
.
onSipStateChange
.
innerCallerModal
({
this
.
onSipStateChange
.
innerCallerModal
({
bool
:
true
,
bool
:
true
,
type
:
null
,
type
:
'
connecting
'
,
});
});
this
.
setGuiPhoneState
({
this
.
setGuiPhoneState
({
funcName
:
'
modalState
'
,
funcName
:
'
modalState
'
,
...
@@ -326,7 +326,7 @@ export class BoxDialer {
...
@@ -326,7 +326,7 @@ export class BoxDialer {
// innerCallerModal;
// innerCallerModal;
this
.
onSipStateChange
.
innerCallerModal
({
this
.
onSipStateChange
.
innerCallerModal
({
bool
:
true
,
bool
:
true
,
type
:
null
,
type
:
'
connecting
'
,
});
});
if
(
this
.
callSession
.
direction
===
'
incoming
'
)
{
if
(
this
.
callSession
.
direction
===
'
incoming
'
)
{
this
.
showNotification
(()
=>
{
this
.
showNotification
(()
=>
{
...
...
src/root/index.jsx
View file @
84de9237
...
@@ -38,7 +38,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
...
@@ -38,7 +38,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const
[
secondLine
,
setSecondLine
]
=
useState
(
false
);
const
[
secondLine
,
setSecondLine
]
=
useState
(
false
);
const
[
innerCallerModal
,
setInnerCallerModal
]
=
useState
({
const
[
innerCallerModal
,
setInnerCallerModal
]
=
useState
({
bool
:
false
,
bool
:
false
,
type
:
null
type
:
null
,
});
});
const
boxDialer
=
window
.
BoxDialer
;
const
boxDialer
=
window
.
BoxDialer
;
...
@@ -154,7 +154,10 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
...
@@ -154,7 +154,10 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
}
}
/>
/>
<
InnerCaller
hidden=
{
innerCallerModal
.
bool
}
modalState=
{
modalState
}
/>
<
InnerCaller
hidden=
{
innerCallerModal
.
bool
}
type=
{
innerCallerModal
.
type
}
/>
<
SecondNotifSip
secondLine=
{
secondLine
}
/>
<
SecondNotifSip
secondLine=
{
secondLine
}
/>
</>
</>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment