From 736f16b17091f01a681a9ee60ec56403c5166f38 Mon Sep 17 00:00:00 2001 From: Pranav Date: Tue, 6 Aug 2024 03:52:38 -0700 Subject: [PATCH] fix: Fix issues with new conversation form (#9891) `requiredIf('isAnEmailInbox')` was not evaluated properly. This PR fixes it by moving it to a method and using the `this.[variable]` pattern. --- .../conversation/contact/ConversationForm.vue | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue index 8eda0be8d..21ed74e6a 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue @@ -68,16 +68,18 @@ export default { attachedFiles: [], }; }, - validations: { - subject: { - required: requiredIf('isAnEmailInbox'), - }, - message: { - required, - }, - targetInbox: { - required, - }, + validations() { + return { + subject: { + required: requiredIf(this.isAnEmailInbox), + }, + message: { + required, + }, + targetInbox: { + required, + }, + }; }, computed: { ...mapGetters({ @@ -574,6 +576,7 @@ export default { .file-uploads { @apply text-start; } + .multiselect-wrap--small.has-multi-select-error { ::v-deep { .multiselect__tags { @@ -586,9 +589,11 @@ export default { .mention--box { @apply left-0 m-auto right-0 top-auto h-fit; } + .multiselect .multiselect__content .multiselect__option span { @apply inline-flex w-6 text-slate-600 dark:text-slate-400; } + .multiselect .multiselect__content .multiselect__option { @apply py-0.5 px-1; }