ng-ipa-library 1.4.9 → 1.4.10

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.
@@ -1352,9 +1352,9 @@ class CommonService {
1352
1352
  constructor(toastrService) {
1353
1353
  this.toastrService = toastrService;
1354
1354
  }
1355
- copyToClipboard(message) {
1356
- navigator.clipboard.writeText(message);
1357
- this.toastrService.success('تم نسخ الرسالة إلى الحافظة', '', {
1355
+ copyToClipboard(copyText, message) {
1356
+ navigator.clipboard.writeText(copyText.toString());
1357
+ this.toastrService.success(message, '', {
1358
1358
  positionClass: 'toast-bottom-right',
1359
1359
  });
1360
1360
  }
@@ -1451,12 +1451,12 @@ class ErrorService {
1451
1451
  this.addCopyButton(response.message + '\n' + msg);
1452
1452
  });
1453
1453
  }
1454
- addCopyButton(message) {
1454
+ addCopyButton(copyText) {
1455
1455
  const messageToast = document.getElementsByClassName('toast-message')[0];
1456
1456
  const icon = document.createElement('i');
1457
1457
  icon.classList.add('ms-2', 'fas', 'fa-copy');
1458
1458
  icon.addEventListener('click', () => {
1459
- this.commonService.copyToClipboard(message);
1459
+ this.commonService.copyToClipboard(copyText, 'تم نسخ الرسالة إلى الحافظة');
1460
1460
  });
1461
1461
  messageToast.appendChild(icon);
1462
1462
  }