@hmcts/ccpay-web-component 5.0.7-beta28 → 5.0.7-beta29
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/bundles/hmcts-ccpay-web-component.umd.js +19 -20
- package/bundles/hmcts-ccpay-web-component.umd.js.map +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js +1 -1
- package/bundles/hmcts-ccpay-web-component.umd.min.js.map +1 -1
- package/esm2015/lib/components/notification-preview/notification-preview.component.js +20 -21
- package/esm5/lib/components/notification-preview/notification-preview.component.js +21 -21
- package/fesm2015/hmcts-ccpay-web-component.js +19 -20
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +20 -20
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -11369,32 +11369,31 @@
|
|
|
11369
11369
|
* @return {?}
|
|
11370
11370
|
*/
|
|
11371
11371
|
function () {
|
|
11372
|
+
var _this = this;
|
|
11372
11373
|
console.log('Notification app started');
|
|
11373
11374
|
/** @type {?} */
|
|
11374
11375
|
var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
11375
|
-
for (var notifPrev in notficationPreviewRequestBody) {
|
|
11376
|
-
console.log(notifPrev);
|
|
11377
|
-
}
|
|
11378
11376
|
this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(( /**
|
|
11379
11377
|
* @param {?} res
|
|
11380
11378
|
* @return {?}
|
|
11381
|
-
*/function (res) {
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11379
|
+
*/function (res) {
|
|
11380
|
+
_this.errorMessage = _this.errorHandlerService.getServerErrorMessage(false, false, '');
|
|
11381
|
+
/** @type {?} */
|
|
11382
|
+
var JsonResponse = JSON.parse(res);
|
|
11383
|
+
console.log("2." + JsonResponse);
|
|
11384
|
+
_this.notification = JsonResponse['data'];
|
|
11385
|
+
console.log("3." + _this.notification);
|
|
11386
|
+
if (_this.notification.template_type === 'letter') {
|
|
11387
|
+
_this.notification.body = _this.notification.body.replace(/\r\n/g, '<br/>');
|
|
11388
|
+
}
|
|
11389
|
+
}), ( /**
|
|
11390
|
+
* @param {?} error
|
|
11391
|
+
* @return {?}
|
|
11392
|
+
*/function (error) {
|
|
11393
|
+
_this.errorMessage = _this.errorHandlerService.getServerErrorMessage(true, false, '');
|
|
11394
|
+
console.log(_this.errorMessage);
|
|
11395
|
+
window.scrollTo(0, 0);
|
|
11396
|
+
}));
|
|
11398
11397
|
console.log('Notification app loaded');
|
|
11399
11398
|
};
|
|
11400
11399
|
NotificationPreviewComponent.decorators = [
|