CP-10759 - Exclude unused fields in dropdown edit

Exclude cells field type from required field validation Include
withStamp prop in template builder data and props
pull/544/head
Bernardo Anderson 4 months ago
parent 669fcf8b5b
commit b1a1e4a0f0

@ -389,6 +389,7 @@ export default {
withPhone: this.withPhone,
withVerification: this.withVerification,
withPayment: this.withPayment,
withStamp: this.withStamp,
isPaymentConnected: this.isPaymentConnected,
withFormula: this.withFormula,
withConditions: this.withConditions,
@ -588,6 +589,11 @@ export default {
required: false,
default: false
},
withStamp: {
type: Boolean,
required: false,
default: false
},
isPaymentConnected: {
type: Boolean,
required: false,

@ -290,7 +290,7 @@
</label>
</div>
<li
v-if="withRequired && field.type !== 'phone' && field.type !== 'stamp' && field.type !== 'verification'"
v-if="withRequired && field.type !== 'phone' && field.type !== 'stamp' && field.type !== 'verification' && field.type !== 'cells'"
@click.stop
>
<label class="cursor-pointer py-1.5">

@ -30,7 +30,7 @@
v-for="(icon, type) in fieldIconsSorted"
:key="type"
>
<li v-if="fieldTypes.includes(type) || ((withPhone || type != 'phone') && (withPayment || type != 'payment') && (withVerification || type != 'verification'))">
<li v-if="['text', 'signature', 'initials', 'date', 'checkbox', 'multiple', 'radio', 'select'].includes(type)">
<a
href="#"
class="text-sm py-1 px-2"
@ -55,7 +55,7 @@ import { IconTextSize, IconWritingSign, IconCalendarEvent, IconPhoto, IconCheckb
export default {
name: 'FiledTypeDropdown',
inject: ['withPhone', 'withPayment', 'withVerification', 't', 'fieldTypes'],
inject: ['withPhone', 'withPayment', 'withVerification', 'withStamp', 't', 'fieldTypes'],
props: {
modelValue: {
type: String,

Loading…
Cancel
Save