@lowcodeunit/applications-flow-common 1.39.19-hardening-bugs → 1.39.21-integration

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.
@@ -4745,14 +4745,19 @@ class SecurityToggleComponent {
4745
4745
  }
4746
4746
  ngOnInit() { }
4747
4747
  ngOnChanges() {
4748
- if (this.IsPrivate === null || this.IsPrivate === undefined) {
4749
- this.IsPrivate = this.EditingApplication.LookupConfig?.IsPrivate;
4748
+ if ((this.IsPrivate === null || this.IsPrivate === undefined) &&
4749
+ this.EditingApplication) {
4750
+ this.IsPrivate = this.EditingApplication?.LookupConfig?.IsPrivate;
4751
+ // console.log("IS PRIVATE: ", this.IsPrivate);
4750
4752
  this.setupSecurityFormGroup();
4751
4753
  }
4752
4754
  }
4753
4755
  SecuritySubmit() {
4754
4756
  //save the security settings
4755
- console.log('submitting security values: ', this.SecurityFormGroup.value);
4757
+ // console.log(
4758
+ // 'submitting security values: ',
4759
+ // this.SecurityFormGroup.value
4760
+ // );
4756
4761
  this.SaveFormEvent.emit(this.SecurityFormGroup.value);
4757
4762
  }
4758
4763
  HandleIsPrivate(event) {
@@ -4766,8 +4771,8 @@ class SecurityToggleComponent {
4766
4771
  this.setupSecurityForm();
4767
4772
  }
4768
4773
  setupSecurityForm() {
4769
- this.SecurityFormGroup.addControl('isPrivate', this.formBldr.control(this.EditingApplication.LookupConfig?.IsPrivate || false, [Validators.required]));
4770
- this.SecurityFormGroup.addControl('isTriggerSignIn', this.formBldr.control(this.EditingApplication.LookupConfig?.IsTriggerSignIn || false, [Validators.required]));
4774
+ this.SecurityFormGroup.addControl('isPrivate', this.formBldr.control(this.EditingApplication?.LookupConfig?.IsPrivate || false, [Validators.required]));
4775
+ this.SecurityFormGroup.addControl('isTriggerSignIn', this.formBldr.control(this.EditingApplication?.LookupConfig?.IsTriggerSignIn || false, [Validators.required]));
4771
4776
  this.SecurityFormGroup.addControl('accessRights', this.formBldr.control(this.EditingApplication?.AccessRightLookups));
4772
4777
  this.SecurityFormGroup.addControl('licenseConfigs', this.formBldr.control(this.EditingApplication?.LicenseConfigurationLookups));
4773
4778
  }
@@ -5358,11 +5363,12 @@ class BuildPipelineFormComponent {
5358
5363
  this.SaveEnvironment();
5359
5364
  }
5360
5365
  SaveEnvironment() {
5366
+ // console.log("submitting build pipeline: ", this.BuildPipelineFormGroup.value);
5361
5367
  const saveEnvReq = {
5362
5368
  Environment: {
5363
5369
  //...this.Environment,
5364
5370
  Artifacts: this.Environment.Artifacts || {},
5365
- //DevOpsActions: this.Environment.DevOpsActions || {},
5371
+ DevOpsActions: this.Environment.DevOpsActions || {},
5366
5372
  //Secrets: this.Environment.Secrets || {},
5367
5373
  //Sources: this.Environment.Sources || {},
5368
5374
  },
@@ -5371,8 +5377,8 @@ class BuildPipelineFormComponent {
5371
5377
  };
5372
5378
  let artifactLookup;
5373
5379
  let artifact = {
5374
- // ...this.Artifact,
5375
- // ...this.SelectedHostingOptionInputControlValues,
5380
+ ...this.Artifact,
5381
+ ...this.SelectedHostingOptionInputControlValues,
5376
5382
  };
5377
5383
  if (!this.ArtifactLookup) {
5378
5384
  artifactLookup = Guid.CreateRaw();
@@ -5421,7 +5427,7 @@ class BuildPipelineFormComponent {
5421
5427
  };
5422
5428
  saveEnvReq.Environment.DevOpsActions[devOpsActionLookup] = doa;
5423
5429
  }
5424
- console.log('env req: ', saveEnvReq);
5430
+ // console.log('env req: ', saveEnvReq);
5425
5431
  this.eacSvc.SaveEnvironmentAsCode(saveEnvReq).then((res) => {
5426
5432
  this.ResponseEvent.emit(res);
5427
5433
  });