@lowcodeunit/applications-flow-common 1.39.86-merge → 1.39.87-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.
@@ -457,6 +457,10 @@ class ProjectService {
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(
461
+ // 'Active Ent set to = ',
462
+ // response.Model?.Lookup
463
+ // );
460
464
  resolve();
461
465
  }
462
466
  else {
@@ -493,6 +497,7 @@ class ProjectService {
493
497
  return new Promise((resolve, reject) => {
494
498
  state.LoadingEnterprises = true;
495
499
  this.appsFlowSvc.ListEnterprises().subscribe((response) => __awaiter(this, void 0, void 0, function* () {
500
+ // console.log('list Enterprises resp: ', response);
496
501
  state.LoadingEnterprises = false;
497
502
  if (response.Status.Code === 0) {
498
503
  state.Enterprises = response.Model;
@@ -512,18 +517,21 @@ class ProjectService {
512
517
  }
513
518
  LoadEnterpriseAsCode(state) {
514
519
  return new Promise((resolve, reject) => {
520
+ // console.log('Load ent called!!!');
515
521
  state.Loading = true;
522
+ state.LoadingActiveEnterprise = true;
516
523
  this.appsFlowSvc.LoadEnterpriseAsCode().subscribe((response) => {
517
524
  var _a;
518
525
  state.Loading = false;
519
- console.log('Load eac response: ', response);
526
+ state.LoadingActiveEnterprise = false;
527
+ // console.log('Load eac response: ', response);
520
528
  if (response.Status.Code === 0) {
521
529
  state.EaC = response.Model || {};
522
530
  }
523
531
  else if (response.Status.Code === 3) {
524
532
  }
525
533
  state.EaC = state.EaC || {};
526
- console.log('state.eac = ', state.EaC);
534
+ // console.log('state.eac = ', state.EaC);
527
535
  this.CreatingProject =
528
536
  Object.keys(((_a = state === null || state === void 0 ? void 0 : state.EaC) === null || _a === void 0 ? void 0 : _a.Projects) || {}).length <= 0;
529
537
  resolve(state.EaC);
@@ -556,6 +564,7 @@ class ProjectService {
556
564
  LoadUserFeed(page, pageSize, filterStr, forCheck = false, state) {
557
565
  return __awaiter(this, void 0, void 0, function* () {
558
566
  return new Promise((resolve, reject) => {
567
+ // console.log('load user feed called');
559
568
  state.LoadingFeed = !forCheck;
560
569
  let paramMap = this.activatedRoute.snapshot.children[0].paramMap;
561
570
  let result = this.loadApplicationsForFeed(state, paramMap);
@@ -612,12 +621,16 @@ class ProjectService {
612
621
  SetActiveEnterprise(state, activeEntLookup) {
613
622
  return __awaiter(this, void 0, void 0, function* () {
614
623
  return new Promise((resolve, reject) => {
624
+ // console.log('SET ACTIVE ENT CALLED', activeEntLookup);
615
625
  state.Loading = true;
626
+ state.LoadingActiveEnterprise = true;
616
627
  state.LoadingFeed = true;
628
+ state.ActiveEnterpriseLookup = activeEntLookup;
629
+ // state.LoadingFeed = true;
617
630
  this.appsFlowSvc.SetActiveEnterprise(activeEntLookup).subscribe((response) => __awaiter(this, void 0, void 0, function* () {
618
631
  if (response.Status.Code === 0) {
619
632
  this.EditingProjectLookup = null;
620
- console.log('state: ', state);
633
+ // console.log('state: ', state);
621
634
  // console.log(
622
635
  // 'project service active ent: ',
623
636
  // activeEntLookup
@@ -629,20 +642,28 @@ class ProjectService {
629
642
  // );
630
643
  resolve(response.Status);
631
644
  var results = yield Promise.all([
632
- this.ListEnterprises(state),
633
- this.LoadEnterpriseAsCode(state),
634
- this.LoadUserFeed(1, 25, localStorage.getItem('activeFilter')
635
- ? localStorage.getItem('activeFilter')
636
- : '', false, state),
645
+ // this.ListEnterprises(state),
646
+ // this.LoadEnterpriseAsCode(state),
647
+ // this.LoadUserFeed(
648
+ // 1,
649
+ // 25,
650
+ // localStorage.getItem('activeFilter')
651
+ // ? localStorage.getItem('activeFilter')
652
+ // : '',
653
+ // false,
654
+ // state
655
+ // ),
637
656
  ]);
638
657
  }
639
658
  else {
640
659
  state.Loading = false;
660
+ state.LoadingActiveEnterprise = false;
641
661
  reject(response.Status);
642
662
  // console.log(response);
643
663
  }
644
664
  }), (err) => {
645
665
  state.Loading = false;
666
+ state.LoadingActiveEnterprise = false;
646
667
  reject(err);
647
668
  console.log(err);
648
669
  });
@@ -4239,7 +4260,7 @@ class DevopsSourceControlFormComponent {
4239
4260
  RefreshOrganizations() {
4240
4261
  var _a, _b, _c;
4241
4262
  // this.Loading = true;
4242
- console.log('refresh');
4263
+ // console.log('refresh');
4243
4264
  this.listOrganizations();
4244
4265
  (_a = this.OrganizationFormControl) === null || _a === void 0 ? void 0 : _a.reset();
4245
4266
  (_b = this.RepositoryFormControl) === null || _b === void 0 ? void 0 : _b.reset();
@@ -7004,7 +7025,7 @@ class FeedHeaderComponent {
7004
7025
  window.location.href = path;
7005
7026
  }
7006
7027
  Submit() {
7007
- console.log('submitting: ', this.value);
7028
+ // console.log('submitting: ', this.value);
7008
7029
  switch (this.selectedBtn) {
7009
7030
  case 'pr-btn':
7010
7031
  //Pull request
@@ -7449,7 +7470,7 @@ class DFSModifiersDialogComponent {
7449
7470
  }
7450
7471
  }
7451
7472
  SaveDFSModifier() {
7452
- console.log('level at save: ', this.data.level);
7473
+ // console.log('level at save: ', this.data.level);
7453
7474
  let status;
7454
7475
  switch (this.data.level) {
7455
7476
  case 'enterprise': {
@@ -8383,8 +8404,8 @@ class TeamMemberCardComponent {
8383
8404
  memberList.push(this.CurrentUser);
8384
8405
  }
8385
8406
  this.ProjectLookups.forEach((proj) => {
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) => {
8407
+ var _a, _b, _c, _d, _e;
8408
+ (_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) => {
8388
8409
  if (!memberList.includes(username)) {
8389
8410
  memberList.push(username);
8390
8411
  // console.log("Added: ", username)
@@ -8712,13 +8733,14 @@ class ProjectCardComponent {
8712
8733
  // console.log('calling build project tree');
8713
8734
  let tempTreeData = [];
8714
8735
  (_a = this.ProjectLookups) === null || _a === void 0 ? void 0 : _a.forEach((pLookup) => {
8736
+ var _a, _b;
8715
8737
  let tempProj = this.Projects[pLookup];
8716
8738
  this.Project = tempProj;
8717
8739
  let tempProjNode = {
8718
- name: tempProj.Project.Name,
8719
- description: tempProj.Project.Description,
8740
+ name: (_a = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _a === void 0 ? void 0 : _a.Name,
8741
+ description: (_b = tempProj === null || tempProj === void 0 ? void 0 : tempProj.Project) === null || _b === void 0 ? void 0 : _b.Description,
8720
8742
  lookup: pLookup,
8721
- url: 'https://' + tempProj.PrimaryHost,
8743
+ url: 'https://' + (tempProj === null || tempProj === void 0 ? void 0 : tempProj.PrimaryHost),
8722
8744
  routerLink: ['/project', pLookup],
8723
8745
  };
8724
8746
  let tempRoutes = this.ApplicationRoutes;