From 07aaa046c17d50617ea95ad85a867941aa40183f Mon Sep 17 00:00:00 2001 From: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Date: Wed, 10 May 2023 15:55:48 +0530 Subject: [PATCH] fix: Welcome email copy changes and canned response API error handling [cw-1290] (#6905) * fix: Welcome email copy changes and canned response API error handling * Review fixes * Uses mixin for alerts in canned page * Typo fixes * Copy changes * Fixes broken tests * Fixes review comments * Fixes typo errors with mail template * Removes unwanted case * Fixes repetitive texts --------- Co-authored-by: Muhsin Keloth --- .../dashboard/i18n/locale/en/cannedMgmt.json | 6 +++--- .../dashboard/settings/canned/AddCanned.vue | 10 +++++---- .../dashboard/settings/canned/EditCanned.vue | 20 +++++++----------- .../dashboard/settings/canned/Index.vue | 6 ++++-- .../dashboard/store/modules/cannedResponse.js | 7 +++++++ .../mailer/confirmation_instructions.html.erb | 21 ++++++++++++------- .../mailers/confirmation_instructions_spec.rb | 4 ++-- 7 files changed, 42 insertions(+), 32 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/cannedMgmt.json b/app/javascript/dashboard/i18n/locale/en/cannedMgmt.json index 9c14f5a52..e3391967d 100644 --- a/app/javascript/dashboard/i18n/locale/en/cannedMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/cannedMgmt.json @@ -34,7 +34,7 @@ }, "API": { "SUCCESS_MESSAGE": "Canned Response added successfully", - "ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later" + "ERROR_MESSAGE": "Could not create canned response, Please try again later" } }, "EDIT": { @@ -56,14 +56,14 @@ "BUTTON_TEXT": "Edit", "API": { "SUCCESS_MESSAGE": "Canned Response updated successfully", - "ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later" + "ERROR_MESSAGE": "Could not update canned response, Please try again later" } }, "DELETE": { "BUTTON_TEXT": "Delete", "API": { "SUCCESS_MESSAGE": "Canned response deleted successfully", - "ERROR_MESSAGE": "Could not connect to Woot Server, Please try again later" + "ERROR_MESSAGE": "Could not delete canned response, Please try again later" }, "CONFIRM": { "TITLE": "Confirm Deletion", diff --git a/app/javascript/dashboard/routes/dashboard/settings/canned/AddCanned.vue b/app/javascript/dashboard/routes/dashboard/settings/canned/AddCanned.vue index 1f117eb81..10c17a003 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/canned/AddCanned.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/canned/AddCanned.vue @@ -5,7 +5,7 @@ :header-title="$t('CANNED_MGMT.ADD.TITLE')" :header-content="$t('CANNED_MGMT.ADD.DESC')" /> -
+