@lowcodeunit/applications-flow-common 1.39.90-enterprise-switch-fix → 1.39.92-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.
@@ -527,8 +527,8 @@ class ProjectService {
527
527
  async LoadEnterpriseAsCode(state) {
528
528
  return new Promise((resolve, reject) => {
529
529
  console.log('Load ent called!!!');
530
- // state.Loading = true;
531
- // state.LoadingActiveEnterprise = true;
530
+ state.Loading = true;
531
+ state.LoadingActiveEnterprise = true;
532
532
  this.appsFlowSvc.LoadEnterpriseAsCode().subscribe({
533
533
  next: async (response) => {
534
534
  console.log('State at Load ent: ', state);
@@ -692,21 +692,15 @@ class ProjectService {
692
692
  next: async (response) => {
693
693
  if (response.Status.Code === 0) {
694
694
  resolve(response.Status);
695
- console.log('Save EAC Success');
695
+ console.log('Save EAC Success: ', response);
696
696
  var results = await Promise.all([
697
697
  // this.EnsureUserEnterprise(state),
698
698
  this.LoadEnterpriseAsCode(state),
699
699
  // this.ListEnterprises(state),
700
700
  // this.GetActiveEnterprise(state),
701
- // this.LoadUserFeed(
702
- // 1,
703
- // 25,
704
- // localStorage.getItem('activeFilter')
705
- // ? localStorage.getItem('activeFilter')
706
- // : '',
707
- // false,
708
- // state
709
- // ),
701
+ this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
702
+ ? localStorage.getItem('activeFilter')
703
+ : '', false, state),
710
704
  ]);
711
705
  // var results = this.LoadEnterpriseAsCode(state);
712
706
  console.log('LOAD EAC RESULTS: ', results);
@@ -716,6 +710,7 @@ class ProjectService {
716
710
  }
717
711
  else {
718
712
  state.Loading = false;
713
+ state.LoadingActiveEnterprise = false;
719
714
  reject(response.Status);
720
715
  // console.log(response);
721
716
  }
@@ -1211,6 +1206,8 @@ class EaCService {
1211
1206
  }
1212
1207
  const status = await this.projectService.SaveEnterpriseAsCode(state, saveEaC);
1213
1208
  console.log('State after save app: ', state);
1209
+ state.Loading = false;
1210
+ state.LoadingActiveEnterprise = false;
1214
1211
  this.stateSubject.next(state);
1215
1212
  return status;
1216
1213
  }