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