@hmcts/ccpay-web-component 4.0.0-beta538 → 4.0.0-beta541

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.
@@ -1894,7 +1894,9 @@
1894
1894
  * @param {?} data
1895
1895
  * @return {?}
1896
1896
  */function (data) { return _this.navigationpage = data; }));
1897
- if (this.navigationpage === 'casetransactions') ;
1897
+ if (this.navigationpage === 'casetransactions') {
1898
+ window.location.href = '/refund-list?takePayment=false&refundlist=true';
1899
+ }
1898
1900
  else {
1899
1901
  this.paymentLibComponent.viewName = 'refund-list';
1900
1902
  }
@@ -1906,7 +1908,12 @@
1906
1908
  * @return {?}
1907
1909
  */
1908
1910
  function () {
1909
- this.loadRefundListPage();
1911
+ if (this.paymentLibComponent.API_ROOT === 'api/payment-history') {
1912
+ window.location.href = '/refund-list?takePayment=false&refundlist=true';
1913
+ }
1914
+ else {
1915
+ this.loadRefundListPage();
1916
+ }
1910
1917
  };
1911
1918
  // loadCaseTransactionPage() {
1912
1919
  // this.paymentLibComponent.isRefundStatusView = false;
@@ -2848,7 +2855,7 @@
2848
2855
  _this.setDefaults();
2849
2856
  }));
2850
2857
  }
2851
- this.checkForExceptionRecord();
2858
+ this.checkForExceptionRecord(Event);
2852
2859
  if (this.OrderslistService.getisFromServiceRequestPages() !== null) {
2853
2860
  this.OrderslistService.getisFromServiceRequestPages().subscribe(( /**
2854
2861
  * @param {?} data
@@ -2885,13 +2892,16 @@
2885
2892
  //return "-";
2886
2893
  };
2887
2894
  /**
2895
+ * @param {?} event
2888
2896
  * @return {?}
2889
2897
  */
2890
2898
  CaseTransactionsComponent.prototype.checkForExceptionRecord = /**
2899
+ * @param {?} event
2891
2900
  * @return {?}
2892
2901
  */
2893
- function () {
2902
+ function (event) {
2894
2903
  var _this = this;
2904
+ event.preventDefault();
2895
2905
  if (this.paymentGroups.length === 0 && (this.selectedOption.toLocaleLowerCase() === 'ccdorexception' || this.selectedOption.toLocaleLowerCase() === 'rc')) {
2896
2906
  this.bulkScaningPaymentService.getBSPaymentsByCCD(this.ccdCaseNumber).subscribe(( /**
2897
2907
  * @param {?} recordData