@lowcodeunit/applications-flow-common 1.39.73-exceptions → 1.39.74-exceptions

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.
@@ -509,12 +509,14 @@ class ProjectService {
509
509
  state.Loading = true;
510
510
  this.appsFlowSvc.LoadEnterpriseAsCode().subscribe((response) => {
511
511
  state.Loading = false;
512
+ console.log('Load eac response: ', response);
512
513
  if (response.Status.Code === 0) {
513
514
  state.EaC = response.Model || {};
514
515
  }
515
516
  else if (response.Status.Code === 3) {
516
517
  }
517
518
  state.EaC = state.EaC || {};
519
+ console.log('state.eac = ', state.EaC);
518
520
  this.CreatingProject =
519
521
  Object.keys(state?.EaC?.Projects || {}).length <= 0;
520
522
  resolve(state.EaC);
@@ -633,7 +635,7 @@ class ProjectService {
633
635
  async SaveEnterpriseAsCode(state, eac) {
634
636
  return new Promise((resolve, reject) => {
635
637
  state.Loading = true;
636
- console.log('eac: ', eac);
638
+ // console.log('eac: ', eac);
637
639
  this.appsFlowSvc.SaveEnterpriseAsCode(eac).subscribe(async (response) => {
638
640
  if (response.Status.Code === 0) {
639
641
  resolve(response.Status);
@@ -4920,9 +4922,13 @@ class ProcessorDetailsFormComponent {
4920
4922
  if (!this.EditingApplication) {
4921
4923
  this.CreateNewApplication();
4922
4924
  }
4923
- else if (!this.ProcessorDetailsFormGroup) {
4925
+ // else if (!this.ProcessorDetailsFormGroup) {
4926
+ else if (!this.ProcessorDetailsFormGroup ||
4927
+ JSON.stringify(this.EditingApplication) !==
4928
+ localStorage.getItem('CurrentApp')) {
4924
4929
  this.SetupProcessorDetailsForm();
4925
4930
  }
4931
+ localStorage.setItem('CurrentApp', JSON.stringify(this.EditingApplication));
4926
4932
  // else if (this.EditingApplication && !this.ProcessorDetailsFormGroup) {
4927
4933
  // this.SetupProcessorDetailsForm();
4928
4934
  // }
@@ -5047,7 +5053,7 @@ class ProcessorDetailsFormComponent {
5047
5053
  this.SetupProcessorDetailsForm();
5048
5054
  }
5049
5055
  SourceControlChanged(event) {
5050
- console.log('sc changed');
5056
+ // console.log('sc changed');
5051
5057
  this.IsSourceControlValid = this.SourceControlFormControl.valid;
5052
5058
  if (this.LCUType === 'GitHub') {
5053
5059
  this.BuildPathFormControl.patchValue(null);
@@ -5172,7 +5178,7 @@ class ProcessorDetailsFormComponent {
5172
5178
  SetupProcessorDetailsForm() {
5173
5179
  this.ProcessorType = this.EditingApplication?.Processor?.Type || '';
5174
5180
  // console.log('EDITING APP = ', this.EditingApplication);
5175
- this.ProcessorDetailsFormGroup;
5181
+ // this.ProcessorDetailsFormGroup;
5176
5182
  if (this.EditingApplication != null) {
5177
5183
  this.ProcessorDetailsFormGroup = this.formBldr.group({
5178
5184
  procType: [this.ProcessorType, [Validators.required]],
@@ -5183,7 +5189,7 @@ class ProcessorDetailsFormComponent {
5183
5189
  }
5184
5190
  }
5185
5191
  setupLCUGitHubForm() {
5186
- // console.log('EditingApplication: ', this.EditingApplication);
5192
+ // console.log('EditingApplication sc: ', this.EditingApplication.LowCodeUnit?.SourceControlLookup);
5187
5193
  this.ProcessorDetailsFormGroup.addControl('sourceControl', this.formBldr.control(this.EditingApplication.LowCodeUnit?.SourceControlLookup || '', [Validators.required]));
5188
5194
  this.IsSourceControlValid = this.SourceControlFormControl.valid;
5189
5195
  this.ProcessorDetailsFormGroup.addControl('buildPath', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Path || '', [Validators.required]));
@@ -5202,6 +5208,7 @@ class ProcessorDetailsFormComponent {
5202
5208
  this.ProcessorDetailsFormGroup.addControl('security', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Security || '', [Validators.required]));
5203
5209
  }
5204
5210
  setupLCUNPMForm() {
5211
+ // console.log('EditingApplication sc: ', this.EditingApplication.LowCodeUnit?.SourceControlLookup);
5205
5212
  this.ProcessorDetailsFormGroup.addControl('sourceControl', this.formBldr.control(this.EditingApplication.LowCodeUnit?.SourceControlLookup || ''));
5206
5213
  }
5207
5214
  setupLCUGitHubOAuthForm() {