@lowcodeunit/applications-flow-common 1.39.91-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.
- 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
@@ -539,7 +539,7 @@ class ProjectService {
|
|
539
539
|
this.appsFlowSvc.LoadEnterpriseAsCode().subscribe({
|
540
540
|
next: (response) => __awaiter(this, void 0, void 0, function* () {
|
541
541
|
var _a;
|
542
|
-
console.log('State at Load ent: ', state);
|
542
|
+
// console.log('State at Load ent: ', state);
|
543
543
|
state.Loading = false;
|
544
544
|
state.LoadingActiveEnterprise = false;
|
545
545
|
console.log('Load eac State after set Loading FALSE: ', state);
|
@@ -704,29 +704,27 @@ class ProjectService {
|
|
704
704
|
state.Loading = true;
|
705
705
|
state.LoadingActiveEnterprise = true;
|
706
706
|
// console.log('eac: ', eac);
|
707
|
-
|
708
|
-
.SaveEnterpriseAsCode(eac)
|
709
|
-
.subscribe({
|
707
|
+
this.appsFlowSvc.SaveEnterpriseAsCode(eac).subscribe({
|
710
708
|
next: (response) => __awaiter(this, void 0, void 0, function* () {
|
711
709
|
if (response.Status.Code === 0) {
|
712
710
|
resolve(response.Status);
|
713
|
-
console.log('Save EAC Success');
|
714
|
-
var results =
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
]);
|
729
|
-
|
711
|
+
console.log('Save EAC Success: ', response);
|
712
|
+
// var results = await Promise.all([
|
713
|
+
// this.EnsureUserEnterprise(state),
|
714
|
+
// this.LoadEnterpriseAsCode(state),
|
715
|
+
// this.ListEnterprises(state),
|
716
|
+
// this.GetActiveEnterprise(state),
|
717
|
+
// this.LoadUserFeed(
|
718
|
+
// 1,
|
719
|
+
// 25,
|
720
|
+
// localStorage.getItem('activeFilter')
|
721
|
+
// ? localStorage.getItem('activeFilter')
|
722
|
+
// : '',
|
723
|
+
// false,
|
724
|
+
// state
|
725
|
+
// ),
|
726
|
+
// ]);
|
727
|
+
var results = yield this.LoadEnterpriseAsCode(state);
|
730
728
|
console.log('LOAD EAC RESULTS: ', results);
|
731
729
|
state.Loading = false;
|
732
730
|
state.LoadingActiveEnterprise = false;
|
@@ -734,6 +732,7 @@ class ProjectService {
|
|
734
732
|
}
|
735
733
|
else {
|
736
734
|
state.Loading = false;
|
735
|
+
state.LoadingActiveEnterprise = false;
|
737
736
|
reject(response.Status);
|
738
737
|
// console.log(response);
|
739
738
|
}
|
@@ -744,7 +743,7 @@ class ProjectService {
|
|
744
743
|
console.log(err);
|
745
744
|
},
|
746
745
|
});
|
747
|
-
console.log('SAVE ENT SUB: ', saveEntSub);
|
746
|
+
// console.log('SAVE ENT SUB: ', saveEntSub);
|
748
747
|
// saveEntSub.unsubscribe();
|
749
748
|
});
|
750
749
|
});
|
@@ -1279,7 +1278,9 @@ class EaCService {
|
|
1279
1278
|
saveEaC.Applications[req.ApplicationLookup] = req.Application;
|
1280
1279
|
}
|
1281
1280
|
const status = yield this.projectService.SaveEnterpriseAsCode(state, saveEaC);
|
1282
|
-
console.log('State after save app: ', state);
|
1281
|
+
console.log('SHOULD BE CALLED LAST State after save app: ', state);
|
1282
|
+
// state.Loading = false;
|
1283
|
+
// state.LoadingActiveEnterprise = false;
|
1283
1284
|
this.stateSubject.next(state);
|
1284
1285
|
return status;
|
1285
1286
|
});
|