@lowcodeunit/applications-flow-common 1.39.82-integration → 1.39.86-merge

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.
@@ -603,17 +603,19 @@ class ProjectService {
603
603
  this.appsFlowSvc.SetActiveEnterprise(activeEntLookup).subscribe(async (response) => {
604
604
  if (response.Status.Code === 0) {
605
605
  this.EditingProjectLookup = null;
606
+ console.log('state: ', state);
606
607
  // console.log(
607
608
  // 'project service active ent: ',
608
609
  // activeEntLookup
609
610
  // );
610
- state.ActiveEnterpriseLookup = activeEntLookup;
611
+ // state.ActiveEnterpriseLookup = activeEntLookup;
611
612
  // console.log(
612
613
  // 'project service State active ent: ',
613
614
  // state.ActiveEnterpriseLookup
614
615
  // );
615
616
  resolve(response.Status);
616
617
  var results = await Promise.all([
618
+ this.ListEnterprises(state),
617
619
  this.LoadEnterpriseAsCode(state),
618
620
  this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
619
621
  ? localStorage.getItem('activeFilter')
@@ -995,9 +997,6 @@ class EaCService {
995
997
  return status;
996
998
  }
997
999
  }
998
- // this.appsFlowEventsSvc.EnsureUserEnterpriseEvent.subscribe(async () => {
999
- // await this.projectService.EnsureUserEnterprise(this.State);
1000
- // });
1001
1000
  async EnsureUserEnterprise() {
1002
1001
  const state = this.stateSubject.getValue();
1003
1002
  const status = await this.projectService.EnsureUserEnterprise(state);
@@ -1117,7 +1116,6 @@ class EaCService {
1117
1116
  // Helpers
1118
1117
  async handleSaveApplication(req) {
1119
1118
  const state = this.stateSubject.getValue();
1120
- // console.log("app req: ", req);
1121
1119
  const saveEaC = {
1122
1120
  EnterpriseLookup: state.EaC.EnterpriseLookup,
1123
1121
  Applications: {},
@@ -1158,12 +1156,11 @@ class EaCService {
1158
1156
  }
1159
1157
  if (req.ApplicationLookup) {
1160
1158
  // console.log('APPLOokup: ', req.ApplicationLookup);
1161
- // console.log('saveEAC: ', saveEaC);
1162
1159
  saveEaC.Applications[req.ApplicationLookup] = {
1163
1160
  ModifierLookups: req.ModifierLookups,
1164
1161
  };
1165
1162
  }
1166
- // console.log('Save mod eac: ', saveEaC);
1163
+ console.log('Save mod eac: ', saveEaC);
1167
1164
  const status = await this.projectService.SaveEnterpriseAsCode(state, saveEaC);
1168
1165
  this.stateSubject.next(state);
1169
1166
  return status;
@@ -7031,6 +7028,7 @@ class DFSModifiersFormComponent {
7031
7028
  SaveModifier(projectLookup = null) {
7032
7029
  let saveStatus;
7033
7030
  if (this.ModifierFormGroup) {
7031
+ // console.log("here 1")
7034
7032
  const saveMdfrReq = {
7035
7033
  Modifier: {
7036
7034
  ...this.EditingModifier,
@@ -7041,7 +7039,7 @@ class DFSModifiersFormComponent {
7041
7039
  Type: this.CurrentType,
7042
7040
  },
7043
7041
  ModifierLookups: [this.EditingModifierLookup],
7044
- ProjectLookups: [projectLookup],
7042
+ // ProjectLookups: [projectLookup],
7045
7043
  };
7046
7044
  let details = this.getDetails();
7047
7045
  saveMdfrReq.Modifier.Details = JSON.stringify(details);
@@ -7050,6 +7048,7 @@ class DFSModifiersFormComponent {
7050
7048
  });
7051
7049
  }
7052
7050
  else if (this.ModifierSelectFormGroup) {
7051
+ // console.log('here 2');
7053
7052
  const saveMdfrReq = {
7054
7053
  ModifierLookups: this.MultiSelectFormControl.value,
7055
7054
  ProjectLookups: [projectLookup],
@@ -7265,7 +7264,7 @@ class DFSModifiersDialogComponent {
7265
7264
  }
7266
7265
  }
7267
7266
  SaveDFSModifier() {
7268
- // console.log("level at save: ", this.data.level)
7267
+ console.log('level at save: ', this.data.level);
7269
7268
  let status;
7270
7269
  switch (this.data.level) {
7271
7270
  case 'enterprise': {
@@ -7287,7 +7286,7 @@ class DFSModifiersDialogComponent {
7287
7286
  this.DFSModifersFormControls.SaveModifierForApplication(this.data.applicationLookup);
7288
7287
  }
7289
7288
  }
7290
- if (status.Code === 0) {
7289
+ if (status?.Code === 0) {
7291
7290
  this.snackBar.open('DFS Modifier Saved Successfully', 'Dismiss', {
7292
7291
  duration: 5000,
7293
7292
  });