@lowcodeunit/applications-flow-common 1.39.92-enterprise-switch-fix → 1.39.93-enterprise-switch-fix

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.
@@ -531,7 +531,7 @@ class ProjectService {
531
531
  state.LoadingActiveEnterprise = true;
532
532
  this.appsFlowSvc.LoadEnterpriseAsCode().subscribe({
533
533
  next: async (response) => {
534
- console.log('State at Load ent: ', state);
534
+ // console.log('State at Load ent: ', state);
535
535
  state.Loading = false;
536
536
  state.LoadingActiveEnterprise = false;
537
537
  console.log('Load eac State after set Loading FALSE: ', state);
@@ -686,23 +686,27 @@ class ProjectService {
686
686
  state.Loading = true;
687
687
  state.LoadingActiveEnterprise = true;
688
688
  // console.log('eac: ', eac);
689
- let saveEntSub = this.appsFlowSvc
690
- .SaveEnterpriseAsCode(eac)
691
- .subscribe({
689
+ this.appsFlowSvc.SaveEnterpriseAsCode(eac).subscribe({
692
690
  next: async (response) => {
693
691
  if (response.Status.Code === 0) {
694
692
  resolve(response.Status);
695
693
  console.log('Save EAC Success: ', response);
696
- var results = await Promise.all([
697
- // this.EnsureUserEnterprise(state),
698
- this.LoadEnterpriseAsCode(state),
699
- // this.ListEnterprises(state),
700
- // this.GetActiveEnterprise(state),
701
- this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
702
- ? localStorage.getItem('activeFilter')
703
- : '', false, state),
704
- ]);
705
- // var results = this.LoadEnterpriseAsCode(state);
694
+ // var results = await Promise.all([
695
+ // this.EnsureUserEnterprise(state),
696
+ // this.LoadEnterpriseAsCode(state),
697
+ // this.ListEnterprises(state),
698
+ // this.GetActiveEnterprise(state),
699
+ // this.LoadUserFeed(
700
+ // 1,
701
+ // 25,
702
+ // localStorage.getItem('activeFilter')
703
+ // ? localStorage.getItem('activeFilter')
704
+ // : '',
705
+ // false,
706
+ // state
707
+ // ),
708
+ // ]);
709
+ var results = await this.LoadEnterpriseAsCode(state);
706
710
  console.log('LOAD EAC RESULTS: ', results);
707
711
  state.Loading = false;
708
712
  state.LoadingActiveEnterprise = false;
@@ -721,7 +725,7 @@ class ProjectService {
721
725
  console.log(err);
722
726
  },
723
727
  });
724
- console.log('SAVE ENT SUB: ', saveEntSub);
728
+ // console.log('SAVE ENT SUB: ', saveEntSub);
725
729
  // saveEntSub.unsubscribe();
726
730
  });
727
731
  }
@@ -1205,9 +1209,9 @@ class EaCService {
1205
1209
  saveEaC.Applications[req.ApplicationLookup] = req.Application;
1206
1210
  }
1207
1211
  const status = await this.projectService.SaveEnterpriseAsCode(state, saveEaC);
1208
- console.log('State after save app: ', state);
1209
- state.Loading = false;
1210
- state.LoadingActiveEnterprise = false;
1212
+ console.log('SHOULD BE CALLED LAST State after save app: ', state);
1213
+ // state.Loading = false;
1214
+ // state.LoadingActiveEnterprise = false;
1211
1215
  this.stateSubject.next(state);
1212
1216
  return status;
1213
1217
  }