@vgroup/dialbox 0.4.70 → 0.4.71
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.
|
@@ -4381,6 +4381,7 @@ class DialboxComponent {
|
|
|
4381
4381
|
let ipAddress = await this.ipService.getIpAddressInfo().toPromise();
|
|
4382
4382
|
const res = await this.twilioService.getToNumber(dialedNumber, ipAddress.address.countryCode).toPromise();
|
|
4383
4383
|
if (res.status == 200) {
|
|
4384
|
+
console.log(res, 'getToNumber');
|
|
4384
4385
|
this.toastTimeout = res.timeInterval * 1000;
|
|
4385
4386
|
await this.showNumberToast(res);
|
|
4386
4387
|
}
|
|
@@ -4390,12 +4391,12 @@ class DialboxComponent {
|
|
|
4390
4391
|
return localStorage.getItem('isAlertEnable');
|
|
4391
4392
|
}
|
|
4392
4393
|
async showNumberToast(data) {
|
|
4393
|
-
const isAlertOn = (localStorage.getItem('isCountryCodeToastOn'));
|
|
4394
|
-
if (isAlertOn == 'true') {
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
}
|
|
4394
|
+
// const isAlertOn = (localStorage.getItem('isCountryCodeToastOn'));
|
|
4395
|
+
// if (isAlertOn == 'true') {
|
|
4396
|
+
this.callNumberToast.show = true;
|
|
4397
|
+
this.callNumberToast.number = data.toNumber;
|
|
4398
|
+
this.callNumberToast.displayNum = data.displayNumber;
|
|
4399
|
+
// }
|
|
4399
4400
|
this.callData.displayNum = data.displayNumber;
|
|
4400
4401
|
//this.callData.phone = data.toNumber;
|
|
4401
4402
|
await this.delay(this.toastTimeout);
|