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.
- package/esm2020/lib/core/services/error.service.mjs +3 -3
- package/esm2020/lib/services/common.service.mjs +4 -4
- package/fesm2015/ng-ipa-library.mjs +5 -5
- package/fesm2015/ng-ipa-library.mjs.map +1 -1
- package/fesm2020/ng-ipa-library.mjs +5 -5
- package/fesm2020/ng-ipa-library.mjs.map +1 -1
- package/lib/services/common.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1352,9 +1352,9 @@ class CommonService {
|
|
|
1352
1352
|
constructor(toastrService) {
|
|
1353
1353
|
this.toastrService = toastrService;
|
|
1354
1354
|
}
|
|
1355
|
-
copyToClipboard(message) {
|
|
1356
|
-
navigator.clipboard.writeText(
|
|
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(
|
|
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(
|
|
1459
|
+
this.commonService.copyToClipboard(copyText, 'تم نسخ الرسالة إلى الحافظة');
|
|
1460
1460
|
});
|
|
1461
1461
|
messageToast.appendChild(icon);
|
|
1462
1462
|
}
|