From b1a1e4a0f083b44958210419f5ef09daed77bf18 Mon Sep 17 00:00:00 2001 From: Bernardo Anderson Date: Thu, 28 Aug 2025 12:54:16 -0500 Subject: [PATCH 1/2] 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 --- app/javascript/template_builder/builder.vue | 6 ++++++ app/javascript/template_builder/field_settings.vue | 2 +- app/javascript/template_builder/field_type.vue | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index b05f1d67..57bf2871 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -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, diff --git a/app/javascript/template_builder/field_settings.vue b/app/javascript/template_builder/field_settings.vue index ae5bea32..e645e01e 100644 --- a/app/javascript/template_builder/field_settings.vue +++ b/app/javascript/template_builder/field_settings.vue @@ -290,7 +290,7 @@
  • +
  • Date: Thu, 28 Aug 2025 13:09:43 -0500 Subject: [PATCH 2/2] CP-10759 - Remove unused withStamp prop and injection --- app/javascript/template_builder/builder.vue | 6 ------ app/javascript/template_builder/field_type.vue | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/app/javascript/template_builder/builder.vue b/app/javascript/template_builder/builder.vue index 57bf2871..b05f1d67 100644 --- a/app/javascript/template_builder/builder.vue +++ b/app/javascript/template_builder/builder.vue @@ -389,7 +389,6 @@ export default { withPhone: this.withPhone, withVerification: this.withVerification, withPayment: this.withPayment, - withStamp: this.withStamp, isPaymentConnected: this.isPaymentConnected, withFormula: this.withFormula, withConditions: this.withConditions, @@ -589,11 +588,6 @@ export default { required: false, default: false }, - withStamp: { - type: Boolean, - required: false, - default: false - }, isPaymentConnected: { type: Boolean, required: false, diff --git a/app/javascript/template_builder/field_type.vue b/app/javascript/template_builder/field_type.vue index 40db0df0..fc1dc1b0 100644 --- a/app/javascript/template_builder/field_type.vue +++ b/app/javascript/template_builder/field_type.vue @@ -55,7 +55,7 @@ import { IconTextSize, IconWritingSign, IconCalendarEvent, IconPhoto, IconCheckb export default { name: 'FiledTypeDropdown', - inject: ['withPhone', 'withPayment', 'withVerification', 'withStamp', 't', 'fieldTypes'], + inject: ['withPhone', 'withPayment', 'withVerification', 't', 'fieldTypes'], props: { modelValue: { type: String,