@vgroup/dialbox 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2249,10 +2249,10 @@ class DialboxComponent {
|
|
|
2249
2249
|
this.isInitialized = false;
|
|
2250
2250
|
this.isMinimised = false;
|
|
2251
2251
|
// Initialize if dialpad is visible by default
|
|
2252
|
-
if (!this.isDialpadHidden) {
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
}
|
|
2252
|
+
// if (!this.isDialpadHidden) {
|
|
2253
|
+
// console.log('sfsdfdsf')
|
|
2254
|
+
// this.initializeTwilio();
|
|
2255
|
+
// }
|
|
2256
2256
|
}
|
|
2257
2257
|
initializeTwilio() {
|
|
2258
2258
|
if (!this.isInitialized) {
|
|
@@ -2379,6 +2379,10 @@ class DialboxComponent {
|
|
|
2379
2379
|
ngOnInit() {
|
|
2380
2380
|
try {
|
|
2381
2381
|
this.token = localStorage.getItem('ext_token') || '';
|
|
2382
|
+
if (!this.isDialpadHidden) {
|
|
2383
|
+
console.log('sfsdfdsf');
|
|
2384
|
+
this.initializeTwilio();
|
|
2385
|
+
}
|
|
2382
2386
|
//this.isCallInProgress = true;
|
|
2383
2387
|
this.getContactList();
|
|
2384
2388
|
this.getUserCallSetting();
|
|
@@ -2509,38 +2513,37 @@ class DialboxComponent {
|
|
|
2509
2513
|
this.registerDragElement();
|
|
2510
2514
|
}
|
|
2511
2515
|
ngOnChanges(changes) {
|
|
2512
|
-
if (changes['isDialpadHidden'] && !this.isDialpadHidden) {
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
}
|
|
2516
|
+
// if (changes['isDialpadHidden'] && !this.isDialpadHidden) {
|
|
2517
|
+
// this.getContactList();
|
|
2518
|
+
// this.getUserCallSetting();
|
|
2519
|
+
// setTimeout(() => {
|
|
2520
|
+
// this.dialInputElement.nativeElement.focus();
|
|
2521
|
+
// }, 0);
|
|
2522
|
+
// if(this.incomingCallData) {
|
|
2523
|
+
// if (this.isCallInProgress) {
|
|
2524
|
+
// this.newIncomingCalls.push(this.incomingCallData);
|
|
2525
|
+
// console.log('404', this.incomingCallData)
|
|
2526
|
+
// this.getUserInformation(this.incomingCallData);
|
|
2527
|
+
// } else {
|
|
2528
|
+
// this.isCallInProgress = true;
|
|
2529
|
+
// this.isDialpadHidden = false;
|
|
2530
|
+
// this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2531
|
+
// console.log('411', this.incomingCallData)
|
|
2532
|
+
// this.getUserInformation(this.incomingCallData);
|
|
2533
|
+
// this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2534
|
+
// this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2535
|
+
// this.callData.isIncomingCall = true;
|
|
2536
|
+
// }
|
|
2537
|
+
// this.incomingCallData.on('cancel', () => {
|
|
2538
|
+
// // this.incomingCallsList = [];
|
|
2539
|
+
// this.isCallInProgress = false;
|
|
2540
|
+
// });
|
|
2541
|
+
// this.incomingCallData.on('disconnect', () => {
|
|
2542
|
+
// // this.incomingCallsList = [];
|
|
2543
|
+
// this.isCallInProgress = false;
|
|
2544
|
+
// });
|
|
2545
|
+
// }
|
|
2546
|
+
// }
|
|
2544
2547
|
}
|
|
2545
2548
|
registerDragElement() {
|
|
2546
2549
|
try {
|