Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update makeHTTPCallCPE.js #1616

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ <h2> {errorMessage} </h2>
label={labels.Body_Label}
builder-context={_builderContext}
name="Body"
onvaluechanged={handleFlowComboboxValueChange}
onvaluechanged={changeBody}
value={body}
value-type={bodyType}
class="slds-m-around_medium"
Expand Down Expand Up @@ -84,7 +84,7 @@ <h2> {errorMessage} </h2>
</div>
</template>

<template if:true={isShowMergeFeildReplacer}>
<template if:false={isShowMergeFeildReplacer}>
<c-merge-field-replacer merge-field-list={mergeFieldList} onclosemodal={closeMergeFieldReplacer}>

</c-merge-field-replacer>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ export default class MakeHTTPCallCPE extends LightningElement {
return validity;

}
dispatchFlowValueChangeEvent(id, newValue, newValueDataType) {
dispatchFlowValueChangeEvent(event) {
if (event && event.detail) {
const newValue = event.detail.value;
const valueChangedEvent = new CustomEvent('configuration_editor_input_value_changed', {
bubbles: true,
cancelable: false,
Expand All @@ -194,7 +196,7 @@ export default class MakeHTTPCallCPE extends LightningElement {
}
});
this.dispatchEvent(valueChangedEvent);
}
}}

changeURL(event) {
//this.inputValues['Endpoint'] = event.target.value;
Expand Down Expand Up @@ -266,15 +268,6 @@ export default class MakeHTTPCallCPE extends LightningElement {

}

getFLowBooleanValue(value) {
if(value === '$GlobalConstant.True') {
return true;
} else if('$GlobalConstant.False') {
return false;
}

return value;
}

makeRESTCall(request) {
makeTestRESTCall( {
Expand Down Expand Up @@ -304,4 +297,4 @@ export default class MakeHTTPCallCPE extends LightningElement {
return JSON.stringify(request);
}

}
}