From b3b76d00ff866cae49f919c4ed835855c2437263 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Thu, 8 Jun 2023 08:22:10 -0700 Subject: [PATCH] fix: Do not use the default value if the out of office message is empty (#7268) --- app/javascript/dashboard/i18n/locale/en/inboxMgmt.json | 1 - .../settings/inbox/components/WeeklyAvailability.vue | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json index 776dd101f..5280c7e1a 100644 --- a/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json +++ b/app/javascript/dashboard/i18n/locale/en/inboxMgmt.json @@ -535,7 +535,6 @@ "UPDATE": "Update business hours settings", "TOGGLE_AVAILABILITY": "Enable business availability for this inbox", "UNAVAILABLE_MESSAGE_LABEL": "Unavailable message for visitors", - "UNAVAILABLE_MESSAGE_DEFAULT": "We are unavailable at the moment. Leave a message we will respond once we are back.", "TOGGLE_HELP": "Enabling business availability will show the available hours on live chat widget even if all the agents are offline. Outside available hours vistors can be warned with a message and a pre-chat form.", "DAY": { "ENABLE": "Enable availability for this day", diff --git a/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WeeklyAvailability.vue b/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WeeklyAvailability.vue index 5eee329b4..533a514f7 100644 --- a/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WeeklyAvailability.vue +++ b/app/javascript/dashboard/routes/dashboard/settings/inbox/components/WeeklyAvailability.vue @@ -102,9 +102,7 @@ export default { data() { return { isBusinessHoursEnabled: false, - unavailableMessage: this.$t( - 'INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_DEFAULT' - ), + unavailableMessage: '', timeZone: DEFAULT_TIMEZONE, dayNames: { 0: 'Sunday', @@ -157,9 +155,7 @@ export default { ? timeSlotParse(timeSlots) : defaultTimeSlot; this.isBusinessHoursEnabled = isEnabled; - this.unavailableMessage = - unavailableMessage || - this.$t('INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_DEFAULT'); + this.unavailableMessage = unavailableMessage || ''; this.timeSlots = slots; this.timeZone = this.timeZones.find(item => timeZone === item.value) ||