From 46867e89cbbf92603643a6f045783bb1f8e139c6 Mon Sep 17 00:00:00 2001 From: "Aswin Dev P.S" Date: Wed, 27 Oct 2021 13:09:29 +0530 Subject: [PATCH] feat: Ability to specify a subject line for outbound emails (#3168) --- .../dashboard/i18n/locale/en/contact.json | 5 ++++ .../conversation/contact/ConversationForm.vue | 29 ++++++++++++++++++- .../store/modules/contactConversations.js | 5 +++- .../contactConversations/actions.spec.js | 16 ++++++++-- app/mailers/conversation_reply_mailer.rb | 16 +++++----- .../mailers/conversation_reply_mailer_spec.rb | 26 +++++++++++++++-- 6 files changed, 83 insertions(+), 14 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/contact.json b/app/javascript/dashboard/i18n/locale/en/contact.json index dd1af9e9e..b0f4eb9ae 100644 --- a/app/javascript/dashboard/i18n/locale/en/contact.json +++ b/app/javascript/dashboard/i18n/locale/en/contact.json @@ -155,6 +155,11 @@ "LABEL": "Inbox", "ERROR": "Select an inbox" }, + "SUBJECT": { + "LABEL": "Subject", + "PLACEHOLDER": "Subject", + "ERROR": "Subject can't be empty" + }, "MESSAGE": { "LABEL": "Message", "PLACEHOLDER": "Write your message here", diff --git a/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue b/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue index 75e333a73..22acd84e5 100644 --- a/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue +++ b/app/javascript/dashboard/routes/dashboard/conversation/contact/ConversationForm.vue @@ -41,6 +41,22 @@ +
+
+ +
+