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