@hmcts/ccpay-web-component 5.0.7-beta30 → 5.0.7-beta31
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 -1
- 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 -2
- package/esm5/lib/components/notification-preview/notification-preview.component.js +19 -2
- package/fesm2015/hmcts-ccpay-web-component.js +17 -1
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +18 -1
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -11565,6 +11565,7 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11565
11565
|
* @return {?}
|
|
11566
11566
|
*/
|
|
11567
11567
|
function () {
|
|
11568
|
+
var _this = this;
|
|
11568
11569
|
console.log('Notification app started');
|
|
11569
11570
|
/** @type {?} */
|
|
11570
11571
|
var notficationPreviewRequestBody = new NotificationPreviewRequest(this.payment, this.contactDetails, this.refundReason, this.refundAmount, this.refundReference, this.paymentReference);
|
|
@@ -11573,7 +11574,23 @@ var NotificationPreviewComponent = /** @class */ (function () {
|
|
|
11573
11574
|
* @return {?}
|
|
11574
11575
|
*/
|
|
11575
11576
|
function (res) {
|
|
11576
|
-
|
|
11577
|
+
_this.errorMessage = _this.errorHandlerService.getServerErrorMessage(false, false, '');
|
|
11578
|
+
/** @type {?} */
|
|
11579
|
+
var JsonResponse = JSON.parse(res);
|
|
11580
|
+
console.log("2." + JsonResponse);
|
|
11581
|
+
_this.notification = JsonResponse['data'];
|
|
11582
|
+
console.log("3." + _this.notification);
|
|
11583
|
+
if (_this.notification.template_type === 'letter') {
|
|
11584
|
+
_this.notification.body = _this.notification.body.replace(/\r\n/g, '<br/>');
|
|
11585
|
+
}
|
|
11586
|
+
}), (/**
|
|
11587
|
+
* @param {?} error
|
|
11588
|
+
* @return {?}
|
|
11589
|
+
*/
|
|
11590
|
+
function (error) {
|
|
11591
|
+
_this.errorMessage = _this.errorHandlerService.getServerErrorMessage(true, false, '');
|
|
11592
|
+
console.log(_this.errorMessage);
|
|
11593
|
+
window.scrollTo(0, 0);
|
|
11577
11594
|
}));
|
|
11578
11595
|
console.log('Notification app loaded');
|
|
11579
11596
|
};
|