@lowcodeunit/applications-flow-common 1.39.91-enterprise-switch-fix → 1.39.93-enterprise-switch-fix
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/services/eac.service.mjs +4 -2
- package/esm2020/lib/services/project.service.mjs +22 -23
- package/fesm2015/lowcodeunit-applications-flow-common.mjs +24 -23
- package/fesm2015/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/fesm2020/lowcodeunit-applications-flow-common.mjs +24 -23
- package/fesm2020/lowcodeunit-applications-flow-common.mjs.map +1 -1
- package/package.json +1 -1
@@ -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,29 +686,27 @@ class ProjectService {
|
|
686
686
|
state.Loading = true;
|
687
687
|
state.LoadingActiveEnterprise = true;
|
688
688
|
// console.log('eac: ', eac);
|
689
|
-
|
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
|
-
console.log('Save EAC Success');
|
696
|
-
var results = await Promise.all([
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
|
703
|
-
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
]);
|
711
|
-
|
693
|
+
console.log('Save EAC Success: ', response);
|
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);
|
712
710
|
console.log('LOAD EAC RESULTS: ', results);
|
713
711
|
state.Loading = false;
|
714
712
|
state.LoadingActiveEnterprise = false;
|
@@ -716,6 +714,7 @@ class ProjectService {
|
|
716
714
|
}
|
717
715
|
else {
|
718
716
|
state.Loading = false;
|
717
|
+
state.LoadingActiveEnterprise = false;
|
719
718
|
reject(response.Status);
|
720
719
|
// console.log(response);
|
721
720
|
}
|
@@ -726,7 +725,7 @@ class ProjectService {
|
|
726
725
|
console.log(err);
|
727
726
|
},
|
728
727
|
});
|
729
|
-
console.log('SAVE ENT SUB: ', saveEntSub);
|
728
|
+
// console.log('SAVE ENT SUB: ', saveEntSub);
|
730
729
|
// saveEntSub.unsubscribe();
|
731
730
|
});
|
732
731
|
}
|
@@ -1210,7 +1209,9 @@ class EaCService {
|
|
1210
1209
|
saveEaC.Applications[req.ApplicationLookup] = req.Application;
|
1211
1210
|
}
|
1212
1211
|
const status = await this.projectService.SaveEnterpriseAsCode(state, saveEaC);
|
1213
|
-
console.log('State after save app: ', state);
|
1212
|
+
console.log('SHOULD BE CALLED LAST State after save app: ', state);
|
1213
|
+
// state.Loading = false;
|
1214
|
+
// state.LoadingActiveEnterprise = false;
|
1214
1215
|
this.stateSubject.next(state);
|
1215
1216
|
return status;
|
1216
1217
|
}
|