Skip to content

Commit

Permalink
Merge pull request #1791 from /issues/1789
Browse files Browse the repository at this point in the history
Issues/1789
  • Loading branch information
Raj6939 authored Nov 25, 2022
2 parents 73ffe85 + b551946 commit 935fb87
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 11 deletions.
Binary file added src/assets/keplr_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
<div class="text-left col-lg-3 col-md-3 text-left">
<tool-tips infoMessage="API header in JSON format"></tool-tips>
<label for="title" class="col-form-label"
>Headers (Optional):
>Headers:
</label>
</div>

Expand Down Expand Up @@ -371,6 +371,24 @@
</div>
</div>

<div class="row g-3 align-items-center w-100 mt-4">
<div class="text-left col-lg-3 col-md-3 text-left">
<tool-tips infoMessage="Error message upon unsuccessful verfication of match condition"></tool-tips>
<label for="type" class="col-form-label"
>Error message:
</label>
</div>
<div class="col-lg-9 col-md-9 px-0">
<input
v-model="apiData.customApiErrorMessage"
type="text"
id="customApiErrorMessage"
class="form-control w-100"
placeholder="Enter error message"
/>
</div>
</div>

<div class="row g-3 align-items-center w-100 mt-4">
<div class="text-left col-lg-3 col-md-3 text-left">
<tool-tips infoMessage="Score you want to give the user upon successfully performing this action"></tool-tips>
Expand Down Expand Up @@ -646,7 +664,8 @@ export default {
apiMethod:null,
returnType:null,
condition:null,
conditionValue:null
conditionValue:null,
customApiErrorMessage:""
},
queryParameterAttributeArray:[],
querryAttrFlash:null,
Expand Down Expand Up @@ -1057,7 +1076,8 @@ export default {
apiMethod:null,
returnType:null,
condition:null,
conditionValue:null
conditionValue:null,
customApiErrorMessage:""
}
this.flash = null;
this.isCreate = true;
Expand Down
16 changes: 8 additions & 8 deletions src/components/participant/ActionInputs/CustomApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
<b-col cols="12" sm="12" md="12">
<div class="row g-3 align-items-center" v-for="(param, index) in values" v-bind:key="index">
<div class="col-lg-12 col-md-12">
<span class="spanClass">{{param.fieldPlaceHolder}}</span>
<div class="mt-3" v-if="param.fieldType !=='BOOLEAN'">


<div class="mt-2" v-if="param.fieldType !=='BOOLEAN'">
<span class="spanClass">{{param.fieldPlaceHolder}}</span>
<div v-if="onlyWallet(param)">
<b-input-group class="mt-3" v-if="param.fieldType === 'BLOCKCHAIN_COSMOS'">
<b-input-group class="mt-2" v-if="param.fieldType === 'BLOCKCHAIN_COSMOS'">
<b-form-input
id="title"
v-model="param.fieldValue"
Expand All @@ -41,10 +41,10 @@
<b-button class="connectBtn" variant="btn btn-outline-twitter"
@click="invokeKeplr(param)"
>
<img src="../../../assets/cosmos-2.svg" class="mr-1" height="20px" />Connect</b-button>
<img src="../../../assets/keplr_logo.png" class="mr-1" height="20px" />Connect</b-button>
</b-input-group-append>
</b-input-group>
<b-input-group class="mt-3" v-else>
<b-input-group class="mt-2" v-else>
<b-form-input
id="title"
v-model="param.fieldValue"
Expand All @@ -55,7 +55,7 @@
<b-button class="connectBtn" variant="btn btn-outline-twitter"
@click="invokeMetamask(param)"
>
<img src="/img/ethereum.2b470564.svg" class="mr-1" height="20px" />Connect</b-button>
<img src="../../../assets/metamask.svg" class="mr-1" height="20px" />Connect</b-button>
</b-input-group-append>

</b-input-group>
Expand All @@ -70,7 +70,7 @@
></b-form-input>
</div>
</div>
<div class="mt-3" v-if="param.fieldType ==='BOOLEAN'">
<div class="mt-2" v-if="param.fieldType ==='BOOLEAN'">
<hf-select-drop-down
v-if="!done"
:options="booleanOptions"
Expand Down

0 comments on commit 935fb87

Please sign in to comment.