@lowcodeunit/applications-flow-common 1.39.85-enterprise-switch-fix → 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.
@@ -453,11 +453,10 @@ class ProjectService {
453
453
  return new Promise((resolve, reject) => {
454
454
  state.LoadingActiveEnterprise = true;
455
455
  this.appsFlowSvc.GetActiveEnterprise().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
456
- var _a, _b;
456
+ var _a;
457
457
  state.LoadingActiveEnterprise = false;
458
458
  if (response.Status.Code === 0) {
459
459
  state.ActiveEnterpriseLookup = (_a = response.Model) === null || _a === void 0 ? void 0 : _a.Lookup;
460
- console.log('Active Ent set to = ', (_b = response.Model) === null || _b === void 0 ? void 0 : _b.Lookup);
461
460
  resolve();
462
461
  }
463
462
  else {
@@ -494,7 +493,6 @@ class ProjectService {
494
493
  return new Promise((resolve, reject) => {
495
494
  state.LoadingEnterprises = true;
496
495
  this.appsFlowSvc.ListEnterprises().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
497
- console.log('list Enterprises resp: ', response);
498
496
  state.LoadingEnterprises = false;
499
497
  if (response.Status.Code === 0) {
500
498
  state.Enterprises = response.Model;
@@ -514,13 +512,10 @@ class ProjectService {
514
512
  }
515
513
  LoadEnterpriseAsCode(state) {
516
514
  return new Promise((resolve, reject) => {
517
- console.log('Load ent called!!!');
518
515
  state.Loading = true;
519
- state.LoadingActiveEnterprise = true;
520
516
  this.appsFlowSvc.LoadEnterpriseAsCode().subscribe((response) => {
521
517
  var _a;
522
518
  state.Loading = false;
523
- state.LoadingActiveEnterprise = false;
524
519
  console.log('Load eac response: ', response);
525
520
  if (response.Status.Code === 0) {
526
521
  state.EaC = response.Model || {};
@@ -561,7 +556,6 @@ class ProjectService {
561
556
  LoadUserFeed(page, pageSize, filterStr, forCheck = false, state) {
562
557
  return __awaiter(this, void 0, void 0, function* () {
563
558
  return new Promise((resolve, reject) => {
564
- console.log('load user feed called');
565
559
  state.LoadingFeed = !forCheck;
566
560
  let paramMap = this.activatedRoute.snapshot.children[0].paramMap;
567
561
  let result = this.loadApplicationsForFeed(state, paramMap);
@@ -618,12 +612,8 @@ class ProjectService {
618
612
  SetActiveEnterprise(state, activeEntLookup) {
619
613
  return __awaiter(this, void 0, void 0, function* () {
620
614
  return new Promise((resolve, reject) => {
621
- console.log('SET ACTIVE ENT CALLED', activeEntLookup);
622
615
  state.Loading = true;
623
- state.LoadingActiveEnterprise = true;
624
616
  state.LoadingFeed = true;
625
- state.ActiveEnterpriseLookup = activeEntLookup;
626
- // state.LoadingFeed = true;
627
617
  this.appsFlowSvc.SetActiveEnterprise(activeEntLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
628
618
  if (response.Status.Code === 0) {
629
619
  this.EditingProjectLookup = null;
@@ -639,28 +629,20 @@ class ProjectService {
639
629
  // );
640
630
  resolve(response.Status);
641
631
  var results = yield Promise.all([
642
- // this.ListEnterprises(state),
643
- // this.LoadEnterpriseAsCode(state),
644
- // this.LoadUserFeed(
645
- // 1,
646
- // 25,
647
- // localStorage.getItem('activeFilter')
648
- // ? localStorage.getItem('activeFilter')
649
- // : '',
650
- // false,
651
- // state
652
- // ),
632
+ this.ListEnterprises(state),
633
+ this.LoadEnterpriseAsCode(state),
634
+ this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
635
+ ? localStorage.getItem('activeFilter')
636
+ : '', false, state),
653
637
  ]);
654
638
  }
655
639
  else {
656
640
  state.Loading = false;
657
- state.LoadingActiveEnterprise = false;
658
641
  reject(response.Status);
659
642
  // console.log(response);
660
643
  }
661
644
  }), (err) => {
662
645
  state.Loading = false;
663
- state.LoadingActiveEnterprise = false;
664
646
  reject(err);
665
647
  console.log(err);
666
648
  });
@@ -8401,8 +8383,8 @@ class TeamMemberCardComponent {
8401
8383
  memberList.push(this.CurrentUser);
8402
8384
  }
8403
8385
  this.ProjectLookups.forEach((proj) => {
8404
- var _a, _b, _c, _d, _e;
8405
- (_e = (_d = (_c = (_b = (_a = this.Projects[proj]) === null || _a === void 0 ? void 0 : _a.RelyingParty) === null || _b === void 0 ? void 0 : _b.AccessConfigurations) === null || _c === void 0 ? void 0 : _c.fathym) === null || _d === void 0 ? void 0 : _d.Usernames) === null || _e === void 0 ? void 0 : _e.forEach((username) => {
8386
+ var _a, _b, _c, _d;
8387
+ (_d = (_c = (_b = (_a = this.Projects[proj].RelyingParty) === null || _a === void 0 ? void 0 : _a.AccessConfigurations) === null || _b === void 0 ? void 0 : _b.fathym) === null || _c === void 0 ? void 0 : _c.Usernames) === null || _d === void 0 ? void 0 : _d.forEach((username) => {
8406
8388
  if (!memberList.includes(username)) {
8407
8389
  memberList.push(username);
8408
8390
  // console.log("Added: ", username)
@@ -8730,14 +8712,13 @@ class ProjectCardComponent {
8730
8712
  // console.log('calling build project tree');
8731
8713
  let tempTreeData = [];
8732
8714
  (_a = this.ProjectLookups) === null || _a === void 0 ? void 0 : _a.forEach((pLookup) => {
8733
- var _a, _b;
8734
8715
  let tempProj = this.Projects[pLookup];
8735
8716
  this.Project = tempProj;
8736
8717
  let tempProjNode = {
8737
- name: (_a = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _a === void 0 ? void 0 : _a.Name,
8738
- description: (_b = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _b === void 0 ? void 0 : _b.Description,
8718
+ name: tempProj.Project.Name,
8719
+ description: tempProj.Project.Description,
8739
8720
  lookup: pLookup,
8740
- url: 'https://' + (tempProj === null || tempProj === void 0 ? void 0 : tempProj.PrimaryHost),
8721
+ url: 'https://' + tempProj.PrimaryHost,
8741
8722
  routerLink: ['/project', pLookup],
8742
8723
  };
8743
8724
  let tempRoutes = this.ApplicationRoutes;