@hmcts/ccd-case-ui-toolkit 4.19.7-rc2 → 4.19.7-rc3

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/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.19.7-rc2
3
+ * @version v4.19.7-rc3
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -24024,7 +24024,7 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24024
24024
  CaseFullAccessViewComponent.prototype.ngOnInit = function () {
24025
24025
  var _this = this;
24026
24026
  helpers_1.initDialog(this.dialogConfig);
24027
- this.init(false);
24027
+ this.init();
24028
24028
  this.callbackErrorsSubject.subscribe(function (errorEvent) {
24029
24029
  _this.error = errorEvent;
24030
24030
  });
@@ -24041,10 +24041,15 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24041
24041
  _this.convertHrefToRouterService.callAngularRouter(hrefMarkdownLinkContent);
24042
24042
  }
24043
24043
  });
24044
+ if (this.activityPollingService.isEnabled && !this.activitySubscription) {
24045
+ this.ngZone.runOutsideAngular(function () {
24046
+ _this.activitySubscription = _this.postViewActivity().subscribe();
24047
+ });
24048
+ }
24044
24049
  };
24045
24050
  CaseFullAccessViewComponent.prototype.ngOnChanges = function (changes) {
24046
24051
  if (!changes.prependedTabs.firstChange) {
24047
- this.init(true);
24052
+ this.init();
24048
24053
  this.crf.detectChanges();
24049
24054
  this.organiseTabPosition();
24050
24055
  }
@@ -24203,20 +24208,12 @@ var CaseFullAccessViewComponent = /** @class */ (function () {
24203
24208
  });
24204
24209
  }
24205
24210
  };
24206
- CaseFullAccessViewComponent.prototype.init = function (callActivityPolling) {
24207
- var _this = this;
24211
+ CaseFullAccessViewComponent.prototype.init = function () {
24208
24212
  // Clone and sort tabs array
24209
24213
  this.sortedTabs = this.orderService.sort(this.caseDetails.tabs);
24210
24214
  this.caseFields = this.getTabFields();
24211
24215
  this.sortedTabs = this.sortTabFieldsAndFilterTabs(this.sortedTabs);
24212
24216
  this.formGroup = this.buildFormGroup(this.caseFields);
24213
- if (this.activityPollingService.isEnabled && callActivityPolling) {
24214
- this.ngZone.runOutsideAngular(function () {
24215
- _this.activitySubscription = _this.postViewActivity().subscribe(function (_resolved) {
24216
- // console.log('Posted VIEW activity and result is: ' + JSON.stringify(_resolved));
24217
- });
24218
- });
24219
- }
24220
24217
  if (this.caseDetails.triggers && this.error) {
24221
24218
  this.resetErrors();
24222
24219
  }