fix: Do not use the default value if the out of office message is empty (#7268)
This commit is contained in:
@@ -535,7 +535,6 @@
|
|||||||
"UPDATE": "Update business hours settings",
|
"UPDATE": "Update business hours settings",
|
||||||
"TOGGLE_AVAILABILITY": "Enable business availability for this inbox",
|
"TOGGLE_AVAILABILITY": "Enable business availability for this inbox",
|
||||||
"UNAVAILABLE_MESSAGE_LABEL": "Unavailable message for visitors",
|
"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.",
|
"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": {
|
"DAY": {
|
||||||
"ENABLE": "Enable availability for this day",
|
"ENABLE": "Enable availability for this day",
|
||||||
|
|||||||
@@ -102,9 +102,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isBusinessHoursEnabled: false,
|
isBusinessHoursEnabled: false,
|
||||||
unavailableMessage: this.$t(
|
unavailableMessage: '',
|
||||||
'INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_DEFAULT'
|
|
||||||
),
|
|
||||||
timeZone: DEFAULT_TIMEZONE,
|
timeZone: DEFAULT_TIMEZONE,
|
||||||
dayNames: {
|
dayNames: {
|
||||||
0: 'Sunday',
|
0: 'Sunday',
|
||||||
@@ -157,9 +155,7 @@ export default {
|
|||||||
? timeSlotParse(timeSlots)
|
? timeSlotParse(timeSlots)
|
||||||
: defaultTimeSlot;
|
: defaultTimeSlot;
|
||||||
this.isBusinessHoursEnabled = isEnabled;
|
this.isBusinessHoursEnabled = isEnabled;
|
||||||
this.unavailableMessage =
|
this.unavailableMessage = unavailableMessage || '';
|
||||||
unavailableMessage ||
|
|
||||||
this.$t('INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_DEFAULT');
|
|
||||||
this.timeSlots = slots;
|
this.timeSlots = slots;
|
||||||
this.timeZone =
|
this.timeZone =
|
||||||
this.timeZones.find(item => timeZone === item.value) ||
|
this.timeZones.find(item => timeZone === item.value) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user