@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
|
@@ -11565,7 +11565,6 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11565
11565
|
* @return {?}
|
|
11566
11566
|
*/
|
|
11567
11567
|
function () {
|
|
11568
|
-
var _this = this;
|
|
11569
11568
|
console.log('Notification app started');
|
|
11570
11569
|
/** @type {?} */
|
|
11571
11570
|
var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
@@ -11574,24 +11573,23 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11574
11573
|
* @param {?} res
|
|
11575
11574
|
* @return {?}
|
|
11576
11575
|
*/
|
|
11577
|
-
function (res) {
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
}
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
}));
|
|
11576
|
+
function (res) { console.log(JSON.parse(res)); }));
|
|
11577
|
+
// this.notificationService.getNotificationPreview(notficationPreviewRequestBody).subscribe(
|
|
11578
|
+
// res => {
|
|
11579
|
+
// this.errorMessage = this.errorHandlerService.getServerErrorMessage(false, false, '');
|
|
11580
|
+
// const JsonResponse = JSON.parse(res);
|
|
11581
|
+
// console.log("2." + JsonResponse);
|
|
11582
|
+
// this.notification = JsonResponse['data'];
|
|
11583
|
+
// console.log("3." + this.notification);
|
|
11584
|
+
// if (this.notification.template_type === 'letter') {
|
|
11585
|
+
// this.notification.body = this.notification.body.replace(/\r\n/g, '<br/>');
|
|
11586
|
+
// }
|
|
11587
|
+
// },
|
|
11588
|
+
// (error: any) => {
|
|
11589
|
+
// this.errorMessage = this.errorHandlerService.getServerErrorMessage(true, false, '');
|
|
11590
|
+
// console.log(this.errorMessage);
|
|
11591
|
+
// window.scrollTo(0, 0);
|
|
11592
|
+
// });
|
|
11595
11593
|
console.log('Notification app loaded');
|
|
11596
11594
|
};
|
|
11597
11595
|
NotificationPreviewComponent.decorators = [
|