mmhglobal-dynamicform 2.41.1 → 2.41.3

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.
@@ -875,7 +875,7 @@ class MainService {
875
875
  };
876
876
  console.log('MainService constructor');
877
877
  this.environment = this.zcoreService.getEnvironment();
878
- this.oauthEnvironmentUrl = this.environment.e1OauthUrl + '/';
878
+ this.oauthEnvironmentUrl = this.zcoreService.getOauthUrl();
879
879
  this.router.events.subscribe((event) => {
880
880
  if (event instanceof NavigationStart) {
881
881
  this.handleNavigationStart(event);
@@ -913,14 +913,15 @@ class MainService {
913
913
  console.log(event);
914
914
  }
915
915
  handleNavigationError(event) {
916
- if (!this.environment.skipAppmon) {
917
- const duration = performance.now() - this.navigationStartTime;
918
- this.updateAppMonPerformance(TriggerFromType.navigateError, this.previousUrl, false, duration).subscribe();
919
- }
916
+ const duration = performance.now() - this.navigationStartTime;
917
+ this.updateAppMonPerformance(TriggerFromType.navigateError, this.previousUrl, false, duration).subscribe();
920
918
  console.log(event.error);
921
919
  this.removeLastNavigateRecord();
922
920
  }
923
921
  updateAppMonPerformance(triggerType, url, isSuccess, duration) {
922
+ if (this.environment.skipAppmon) {
923
+ return of({});
924
+ }
924
925
  // Initialize appmonDomainUrl if missing
925
926
  if (!this.resourceApiService.appmonDomainUrl) {
926
927
  this.resourceApiService.appmonDomainUrl = sessionStorage.getItem('AppmonDomainUrl') || '';
@@ -5413,7 +5414,6 @@ class UicontentComponent {
5413
5414
  console.log(this.group);
5414
5415
  }
5415
5416
  isSITEnvironment() {
5416
- // return environment.e1OauthUrl.startsWith('https://oauthdev.');
5417
5417
  return this.zcoreService.isDebugSession() && !this.isFieldElement();
5418
5418
  }
5419
5419
  isFieldElement() {
@@ -10139,7 +10139,7 @@ class ZgridComponent extends DataListingFieldBase {
10139
10139
  }
10140
10140
  };
10141
10141
  this.environment = this.zcoreService.getEnvironment();
10142
- this.oauthUrl = `${this.environment.e1OauthUrl}/`;
10142
+ this.oauthUrl = this.zcoreService.getOauthUrl();
10143
10143
  this.allResults = this.allResults.bind(this);
10144
10144
  this.refreshData = this.refreshData.bind(this);
10145
10145
  this.clearData = this.clearData.bind(this);