@hmcts/ccpay-web-component 4.0.0-beta531 → 4.0.0-beta532
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 +9 -4
- 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/add-remission/add-remission.component.js +2 -2
- package/esm2015/lib/components/payment-view/payment-view.component.js +2 -2
- package/esm2015/lib/components/refund-status/refund-status.component.js +2 -2
- package/esm2015/lib/services/shared/error-handler.service.js +7 -2
- package/esm5/lib/components/add-remission/add-remission.component.js +2 -2
- package/esm5/lib/components/payment-view/payment-view.component.js +2 -2
- package/esm5/lib/components/refund-status/refund-status.component.js +2 -2
- package/esm5/lib/services/shared/error-handler.service.js +7 -2
- package/fesm2015/hmcts-ccpay-web-component.js +9 -4
- package/fesm2015/hmcts-ccpay-web-component.js.map +1 -1
- package/fesm5/hmcts-ccpay-web-component.js +9 -4
- package/fesm5/hmcts-ccpay-web-component.js.map +1 -1
- package/package.json +1 -1
|
@@ -209,7 +209,12 @@ var ErrorHandlerService = /** @class */ (function () {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
else if (err.error) {
|
|
212
|
-
|
|
212
|
+
if (typeof err.error === 'string') {
|
|
213
|
+
errorMessage = err.error.replace(/"/g, "");
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
errorMessage = JSON.parse(err.error)["err"].split('-')[1];
|
|
217
|
+
}
|
|
213
218
|
}
|
|
214
219
|
else if (err.error.messsage === undefined) {
|
|
215
220
|
errorMessage = 'Server error';
|
|
@@ -1156,7 +1161,7 @@ var PaymentViewComponent = /** @class */ (function () {
|
|
|
1156
1161
|
*/
|
|
1157
1162
|
function (event) {
|
|
1158
1163
|
var _this = this;
|
|
1159
|
-
event.preventDefault();
|
|
1164
|
+
// event.preventDefault();
|
|
1160
1165
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1161
1166
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1162
1167
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
@@ -6856,8 +6861,8 @@ var AddRemissionComponent = /** @class */ (function () {
|
|
|
6856
6861
|
* @return {?}
|
|
6857
6862
|
*/
|
|
6858
6863
|
function (event) {
|
|
6864
|
+
// event.preventDefault();
|
|
6859
6865
|
var _this = this;
|
|
6860
|
-
event.preventDefault();
|
|
6861
6866
|
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
6862
6867
|
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
6863
6868
|
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
@@ -8233,7 +8238,7 @@ var RefundStatusComponent = /** @class */ (function () {
|
|
|
8233
8238
|
* @return {?}
|
|
8234
8239
|
*/
|
|
8235
8240
|
function (event) {
|
|
8236
|
-
event.preventDefault();
|
|
8241
|
+
// event.preventDefault();
|
|
8237
8242
|
this.errorMessage = false;
|
|
8238
8243
|
this.paymentLibComponent.isRefundStatusView = true;
|
|
8239
8244
|
this.ngOnInit();
|