Skip to content

Commit

Permalink
fixed bug 1762
Browse files Browse the repository at this point in the history
  • Loading branch information
Raj6939 committed Nov 21, 2022
1 parent 3935d29 commit c2b6855
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
</div>
<div class="row g-3 align-items-center w-100 mt-4">
<div class="col-lg-3 col-md-3 text-left">
<label for="type" class="col-form-label">Placeholder:</label>
<label for="type" class="col-form-label">Label<span style="color: red">*</span>:</label>
</div>
<div class="col-lg-9 col-md-9 px-0">
<input v-model="queryParamAttributeData.fieldPlaceHolder" type="text" id="attributeName" class="form-control w-100"
Expand Down Expand Up @@ -245,7 +245,7 @@
</div>
<div class="row g-3 align-items-center w-100 mt-4">
<div class="col-lg-3 col-md-3 text-left">
<label for="type" class="col-form-label">Placeholder:</label>
<label for="type" class="col-form-label">Label<span style="color: red">*</span>:</label>
</div>
<div class="col-lg-9 col-md-9 px-0">
<input v-model="attributeData.fieldPlaceHolder" type="text" id="attributeName" class="form-control w-100"
Expand Down Expand Up @@ -679,6 +679,9 @@ export default {
else if(!this.queryParamAttributeData.fieldType) {
isValid = false
return this.notifyErr('Select Field Type')
} else if(isEmpty(this.queryParamAttributeData.fieldPlaceHolder)) {
isValid = false
return this.notifyErr('Enter Label')
}
return isValid
},
Expand Down Expand Up @@ -824,6 +827,9 @@ export default {
else if(!this.attributeData.fieldType) {
isValid = false
return this.notifyErr('Select Field Type')
} else if(isEmpty(this.attributeData.fieldPlaceHolder)) {
isValid = false
return this.notifyErr('Enter Label')
}
return isValid
},
Expand Down
9 changes: 6 additions & 3 deletions src/components/participant/ActionInputs/CustomApi.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
<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">
<div class="mt-3" v-if="param.fieldType !=='BOOLEAN'">
<span class="spanClass">{{param.fieldPlaceHolder}}</span>
<b-form-input
id="title"
v-model="param.fieldValue"
:required="true"
class="form-control w-100"
:disabled="done"
:placeholder="param.fieldPlaceHolder ? `${param.fieldPlaceHolder}` :`${param.fieldName}`"
class="form-control w-100 mt-1"
:disabled="done"
></b-form-input>
</div>
<div class="mt-3" v-if="param.fieldType ==='BOOLEAN'">
Expand Down Expand Up @@ -65,6 +65,9 @@
.center{
display: block; margin-left: auto;margin-right: auto
}
.spanClass{
color:rgb(26 26 26 / 90%);
}
</style>

<script>
Expand Down

0 comments on commit c2b6855

Please sign in to comment.