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
d4621ebd
Commit
d4621ebd
authored
Sep 20, 2023
by
Muhammadali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d0a24673
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
12 deletions
+8
-12
package.json
package.json
+1
-1
index.jsx
src/components/ModalPhoneNumpad/index.jsx
+7
-11
No files found.
package.json
View file @
d4621ebd
{
"name"
:
"boxdialer"
,
"version"
:
"1.8.
7
"
,
"version"
:
"1.8.
8
"
,
"description"
:
""
,
"main"
:
"src/boxDialer.js"
,
"scripts"
:
{
...
...
src/components/ModalPhoneNumpad/index.jsx
View file @
d4621ebd
...
...
@@ -68,7 +68,6 @@ const ModalPhoneNumpad = ({
};
const
history
=
({
type
})
=>
{
console
.
log
(
'
type
'
,
type
);
if
(
phoneModal
&&
(
modalState
.
bool
?
false
:
true
))
{
if
(
(
type
===
'
up
'
&&
numberSelectHistory
<
call_history
.
length
)
||
...
...
@@ -109,8 +108,6 @@ const ModalPhoneNumpad = ({
}
},
[
numberSelectHistory
]);
console
.
log
(
'
numberSelectHistory
'
,
numberSelectHistory
);
document
.
onkeydown
=
function
(
e
)
{
if
(
phoneModal
&&
modalState
.
bool
?
false
:
true
)
{
e
=
e
||
window
.
event
;
...
...
@@ -176,16 +173,16 @@ const ModalPhoneNumpad = ({
const
callButton
=
()
=>
{
// inset if ----------
if
(
Boolean
(
inputValue
.
toString
().
length
))
{
console
.
log
(
inputValue
,
'
inputValue
'
);
let
newCallsStringify
=
JSON
.
stringify
([...
call_history
,
inputValue
]);
localStorage
.
setItem
(
'
callhistory
'
,
newCallsStringify
);
}
// -------------------
if
(
dynamicValue
===
'
connected
'
)
{
// let call_history = localStorage.getItem('call_history');
if
(
Boolean
(
inputValue
.
toString
().
length
)
&&
call_history
.
slice
(
-
1
)[
0
]
!=
inputValue
)
{
let
newCallsStringify
=
JSON
.
stringify
([...
call_history
,
inputValue
]);
localStorage
.
setItem
(
'
callhistory
'
,
newCallsStringify
);
}
boxDialer
.
initialized
(
inputValue
);
}
else
{
toast
.
error
(
'
Please wait
'
,
{
...
...
@@ -195,7 +192,6 @@ const ModalPhoneNumpad = ({
});
}
};
return
(
<
ModalPhoneNumpadStyle
position=
{
position
}
...
...
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