@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
|
@@ -198,7 +198,12 @@
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
else if (err.error) {
|
|
201
|
-
|
|
201
|
+
if (typeof err.error === 'string') {
|
|
202
|
+
errorMessage = err.error.replace(/"/g, "");
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
errorMessage = JSON.parse(err.error)["err"].split('-')[1];
|
|
206
|
+
}
|
|
202
207
|
}
|
|
203
208
|
else if (err.error.messsage === undefined) {
|
|
204
209
|
errorMessage = 'Server error';
|
|
@@ -1168,7 +1173,7 @@
|
|
|
1168
1173
|
*/
|
|
1169
1174
|
function (event) {
|
|
1170
1175
|
var _this = this;
|
|
1171
|
-
event.preventDefault();
|
|
1176
|
+
// event.preventDefault();
|
|
1172
1177
|
this.OrderslistService.setnavigationPage('casetransactions');
|
|
1173
1178
|
this.OrderslistService.setisFromServiceRequestPage(false);
|
|
1174
1179
|
this.paymentLibComponent.viewName = 'case-transactions';
|
|
@@ -6749,8 +6754,8 @@
|
|
|
6749
6754
|
* @return {?}
|
|
6750
6755
|
*/
|
|
6751
6756
|
function (event) {
|
|
6757
|
+
// event.preventDefault();
|
|
6752
6758
|
var _this = this;
|
|
6753
|
-
event.preventDefault();
|
|
6754
6759
|
if (this.paymentLibComponent.TAKEPAYMENT === undefined && this.paymentLibComponent.SERVICEREQUEST === undefined) {
|
|
6755
6760
|
this.paymentLibComponent.SERVICEREQUEST = 'false';
|
|
6756
6761
|
this.paymentLibComponent.TAKEPAYMENT = false;
|
|
@@ -8101,7 +8106,7 @@
|
|
|
8101
8106
|
* @return {?}
|
|
8102
8107
|
*/
|
|
8103
8108
|
function (event) {
|
|
8104
|
-
event.preventDefault();
|
|
8109
|
+
// event.preventDefault();
|
|
8105
8110
|
this.errorMessage = false;
|
|
8106
8111
|
this.paymentLibComponent.isRefundStatusView = true;
|
|
8107
8112
|
this.ngOnInit();
|