@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.
|
@@ -2233,10 +2233,10 @@ class DialboxComponent {
|
|
|
2233
2233
|
this.isInitialized = false;
|
|
2234
2234
|
this.isMinimised = false;
|
|
2235
2235
|
// Initialize if dialpad is visible by default
|
|
2236
|
-
if (!this.isDialpadHidden) {
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
}
|
|
2236
|
+
// if (!this.isDialpadHidden) {
|
|
2237
|
+
// console.log('sfsdfdsf')
|
|
2238
|
+
// this.initializeTwilio();
|
|
2239
|
+
// }
|
|
2240
2240
|
}
|
|
2241
2241
|
initializeTwilio() {
|
|
2242
2242
|
if (!this.isInitialized) {
|
|
@@ -2363,6 +2363,10 @@ class DialboxComponent {
|
|
|
2363
2363
|
ngOnInit() {
|
|
2364
2364
|
try {
|
|
2365
2365
|
this.token = localStorage.getItem('ext_token') || '';
|
|
2366
|
+
if (!this.isDialpadHidden) {
|
|
2367
|
+
console.log('sfsdfdsf');
|
|
2368
|
+
this.initializeTwilio();
|
|
2369
|
+
}
|
|
2366
2370
|
//this.isCallInProgress = true;
|
|
2367
2371
|
this.getContactList();
|
|
2368
2372
|
this.getUserCallSetting();
|
|
@@ -2493,38 +2497,37 @@ class DialboxComponent {
|
|
|
2493
2497
|
this.registerDragElement();
|
|
2494
2498
|
}
|
|
2495
2499
|
ngOnChanges(changes) {
|
|
2496
|
-
if (changes['isDialpadHidden'] && !this.isDialpadHidden) {
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
}
|
|
2500
|
+
// if (changes['isDialpadHidden'] && !this.isDialpadHidden) {
|
|
2501
|
+
// this.getContactList();
|
|
2502
|
+
// this.getUserCallSetting();
|
|
2503
|
+
// setTimeout(() => {
|
|
2504
|
+
// this.dialInputElement.nativeElement.focus();
|
|
2505
|
+
// }, 0);
|
|
2506
|
+
// if(this.incomingCallData) {
|
|
2507
|
+
// if (this.isCallInProgress) {
|
|
2508
|
+
// this.newIncomingCalls.push(this.incomingCallData);
|
|
2509
|
+
// console.log('404', this.incomingCallData)
|
|
2510
|
+
// this.getUserInformation(this.incomingCallData);
|
|
2511
|
+
// } else {
|
|
2512
|
+
// this.isCallInProgress = true;
|
|
2513
|
+
// this.isDialpadHidden = false;
|
|
2514
|
+
// this.callData.phone = this.incomingCallData.parameters['From'];
|
|
2515
|
+
// console.log('411', this.incomingCallData)
|
|
2516
|
+
// this.getUserInformation(this.incomingCallData);
|
|
2517
|
+
// this.callData.name = this.incomingCallData.customParameters.get('name');
|
|
2518
|
+
// this.callData.img = this.incomingCallData.customParameters.get('image') || 'assets/images/user.jpg';
|
|
2519
|
+
// this.callData.isIncomingCall = true;
|
|
2520
|
+
// }
|
|
2521
|
+
// this.incomingCallData.on('cancel', () => {
|
|
2522
|
+
// // this.incomingCallsList = [];
|
|
2523
|
+
// this.isCallInProgress = false;
|
|
2524
|
+
// });
|
|
2525
|
+
// this.incomingCallData.on('disconnect', () => {
|
|
2526
|
+
// // this.incomingCallsList = [];
|
|
2527
|
+
// this.isCallInProgress = false;
|
|
2528
|
+
// });
|
|
2529
|
+
// }
|
|
2530
|
+
// }
|
|
2528
2531
|
}
|
|
2529
2532
|
registerDragElement() {
|
|
2530
2533
|
try {
|