@lowcodeunit/applications-flow-common 1.39.15-hardening-bugs → 1.39.17-hardening-bugs

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.
@@ -2033,7 +2033,7 @@ class DomainsComponent {
2033
2033
  this.Config = new CardFormConfigModel({
2034
2034
  Icon: 'head',
2035
2035
  Title: '',
2036
- Subtitle: 'In order to use a custom domain, create a CNAME dns record pointing desired subdomain to https://fathym-cloud-prd-lcu-customers-20349043.azurefd.net' +
2036
+ Subtitle: 'In order to use a custom domain, create a CNAME dns record pointing desired subdomain to ' +
2037
2037
  this.HostDNSInstance +
2038
2038
  '.',
2039
2039
  FormActions: {
@@ -4891,7 +4891,7 @@ class ProcessorDetailsFormComponent {
4891
4891
  if (!this.EditingApplication) {
4892
4892
  this.CreateNewApplication();
4893
4893
  }
4894
- else {
4894
+ else if (!this.ProcessorDetailsFormGroup) {
4895
4895
  this.SetupProcessorDetailsForm();
4896
4896
  }
4897
4897
  // else if (this.EditingApplication && !this.ProcessorDetailsFormGroup) {
@@ -5059,14 +5059,17 @@ class ProcessorDetailsFormComponent {
5059
5059
  }
5060
5060
  listBuildPaths() {
5061
5061
  // this.Loading = true;
5062
- console.log('Source Control: ', this.SourceControls[this.SourceControlFormControl.value]);
5062
+ // console.log(
5063
+ // 'Source Control: ',
5064
+ // this.SourceControls[this.SourceControlFormControl.value]
5065
+ // );
5063
5066
  this.appsFlowSvc
5064
5067
  .ListBuildPaths(this.SourceControls[this.SourceControlFormControl.value]
5065
5068
  ?.Organization, this.SourceControls[this.SourceControlFormControl.value]
5066
5069
  ?.Repository)
5067
5070
  .subscribe((response) => {
5068
5071
  this.BuildPathOptions = response.Model;
5069
- console.log('build path options: ', this.BuildPathOptions);
5072
+ // console.log('build path options: ', this.BuildPathOptions);
5070
5073
  // this.Loading = false;
5071
5074
  // if (this.BuildPathOptions?.length === 1) {
5072
5075
  // this.BuildPathFormControl.setValue(this.BuildPathOptions[0]);
@@ -5075,6 +5078,7 @@ class ProcessorDetailsFormComponent {
5075
5078
  }
5076
5079
  setupLcuTypeSubForm() {
5077
5080
  this.cleanupLcuTypeSubForm();
5081
+ // console.log('LCU Type: ', this.LCUType);
5078
5082
  if (this.LCUType) {
5079
5083
  switch (this.LCUType) {
5080
5084
  case 'API':
@@ -5092,9 +5096,9 @@ class ProcessorDetailsFormComponent {
5092
5096
  case 'WordPress':
5093
5097
  this.setupLCUWordPressForm();
5094
5098
  break;
5095
- // case 'NPM':
5096
- // this.setupLCUNPMForm();
5097
- // break;
5099
+ case 'NPM':
5100
+ this.setupLCUNPMForm();
5101
+ break;
5098
5102
  case 'SPA':
5099
5103
  this.setupLCUSPAForm();
5100
5104
  break;
@@ -5118,7 +5122,7 @@ class ProcessorDetailsFormComponent {
5118
5122
  }
5119
5123
  }
5120
5124
  setupLCUGitHubForm() {
5121
- console.log('EditingApplication: ', this.EditingApplication);
5125
+ // console.log('EditingApplication: ', this.EditingApplication);
5122
5126
  this.ProcessorDetailsFormGroup.addControl('sourceControl', this.formBldr.control(this.EditingApplication.LowCodeUnit?.SourceControlLookup || '', [Validators.required]));
5123
5127
  this.IsSourceControlValid = this.SourceControlFormControl.valid;
5124
5128
  this.ProcessorDetailsFormGroup.addControl('buildPath', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Path || '', [Validators.required]));
@@ -5136,6 +5140,9 @@ class ProcessorDetailsFormComponent {
5136
5140
  this.ProcessorDetailsFormGroup.addControl('apiRoot', this.formBldr.control(this.EditingApplication.LowCodeUnit?.APIRoot || '', [Validators.required]));
5137
5141
  this.ProcessorDetailsFormGroup.addControl('security', this.formBldr.control(this.EditingApplication.LowCodeUnit?.Security || '', [Validators.required]));
5138
5142
  }
5143
+ setupLCUNPMForm() {
5144
+ this.ProcessorDetailsFormGroup.addControl('sourceControl', this.formBldr.control(this.EditingApplication.LowCodeUnit?.SourceControlLookup || '', [Validators.required]));
5145
+ }
5139
5146
  setupLCUGitHubOAuthForm() {
5140
5147
  this.ProcessorDetailsFormGroup.addControl('clientId', this.formBldr.control(this.EditingApplication.LowCodeUnit?.ClientID || '', [Validators.required]));
5141
5148
  this.ProcessorDetailsFormGroup.addControl('clientSecret', this.formBldr.control(this.EditingApplication.LowCodeUnit?.ClientSecret || '', [Validators.required]));
@@ -5912,7 +5919,9 @@ class NewApplicationDialogComponent {
5912
5919
  this.SourceControlLookups = Object.keys(this.Environment.Sources || {});
5913
5920
  }
5914
5921
  });
5915
- this.SetupApplication(Guid.CreateRaw());
5922
+ if (!this.NewApplicationLookup) {
5923
+ this.SetupApplication(Guid.CreateRaw());
5924
+ }
5916
5925
  }
5917
5926
  ngOnDestroy() {
5918
5927
  this.StateSub.unsubscribe();