Skip to content

Commit

Permalink
removed console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
suvarnakale committed Sep 25, 2023
1 parent b4586d4 commit 39e8ed9
Showing 1 changed file with 2 additions and 27 deletions.
29 changes: 2 additions & 27 deletions src/app/admin/config-workflow/config-workflow.component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { Component, OnInit, Input, SimpleChanges, ViewChild, SimpleChange } from "@angular/core";
import { Component, OnInit, Input, SimpleChanges } from "@angular/core";
import { ActivatedRoute, Router } from "@angular/router";
import { GeneralService } from "src/app/services/general/general.service";
import { TranslateService } from '@ngx-translate/core';
import { FormGroup, FormControl, FormArray, FormBuilder } from '@angular/forms';
import { THIS_EXPR } from "@angular/compiler/src/output/output_ast";

@Component({
selector: "config-workflow",
Expand Down Expand Up @@ -110,7 +109,6 @@ export class ConfigWorkflowComponent implements OnInit {
});
});

console.log({ data });
this.workflowForm.patchValue(data);
}

Expand Down Expand Up @@ -248,7 +246,6 @@ export class ConfigWorkflowComponent implements OnInit {
}
}
this.setSelectOptions(l, 0, attestorEntity);
console.log(this.conditionSelectOptions);
let workflowItems = [
{
workflowname: attestationPolicies[l].name,
Expand Down Expand Up @@ -400,12 +397,8 @@ export class ConfigWorkflowComponent implements OnInit {
removeFieldCondition(wIndex, aIndex, fIndex) {
this.fieldConditions(wIndex, aIndex).removeAt(fIndex);
}
//------------Start - fieldConditions----------------------

//------------End - fieldConditions----------------------

onSubmit() {
console.log(this.workflowForm.value);
}

//------------------------------------End - dynamic form ---------------------

Expand All @@ -432,25 +425,12 @@ export class ConfigWorkflowComponent implements OnInit {

this.selectedMenuFields.push(arr);


console.log(this.selectedMenuFields[0]);
for (let i = 0; i < this.selectedMenuFields[0].length; i++) {

let fieldName = this.selectedMenuFields[0][i].split(".");
fieldName = fieldName[fieldName.length - 1];
let fieldFullPath = this.findPath(attest, fieldName);
// this.ObjectbyString(attest, this.findPath(attest, fieldName))

console.log(fieldFullPath);


//want key
// find key path , call findPath()
// pass key and fieldArr to ObjectbyString()

console.log(this.ObjectbyString(attest, fieldFullPath + '.' + fieldName));
this.additionInputArr.push(this.ObjectbyString(attest, fieldFullPath + '.' + fieldName));
console.log(this.additionInputArr);

// add key in additionInputArr - todo
}
Expand Down Expand Up @@ -592,7 +572,6 @@ export class ConfigWorkflowComponent implements OnInit {
let myArray = "";
let feild_name = "";
let commonSchema_name = item?.properties?.[temp_arr[i]]?.["$ref"];
console.log(commonSchema_name);
myArray = commonSchema_name.split("/")[0].split(".")[0];
feild_name = commonSchema_name.split("/")[3];

Expand Down Expand Up @@ -965,12 +944,10 @@ export class ConfigWorkflowComponent implements OnInit {
if (submittedWorkflowData.length === 0) {
return;
}
console.log("submittedWorkflowData", submittedWorkflowData)
for (let i = 0; i < submittedWorkflowData.length; i++) { // loop through each workflow in the array of workflows

// validation for empty workflow name and attestation type
if (submittedWorkflowData[i].workflowname === "" || submittedWorkflowData[i].attestation_type === "") {
console.log("empty workflow name or attestation type");
continue;
}

Expand Down Expand Up @@ -1011,7 +988,6 @@ export class ConfigWorkflowComponent implements OnInit {

// Validation for empty attestorConditions
if (attestorConditionsString === "" || Object.keys(setAttestationProperties).length === 0) {
console.log("empty attestorConditions or attestationProperties");
continue;
}

Expand All @@ -1029,7 +1005,6 @@ export class ConfigWorkflowComponent implements OnInit {

attestationPolicies.push(attestationPolicyItem);
}
console.log("attestationPolicies", attestationPolicies);
let payload = {};
let osidOfSchema = "";
for (let i = 0; i < this.fullSchemas?.length; i++) {
Expand Down

0 comments on commit 39e8ed9

Please sign in to comment.