fix: Editor file upload browser showing bug (#8019)
This commit is contained in:
@@ -711,6 +711,6 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.editor-warning__message {
|
.editor-warning__message {
|
||||||
@apply text-red-400 dark:text-red-400 font-normal pt-1 pb-0 px-0;
|
@apply text-red-400 dark:text-red-400 text-sm font-normal pt-1 pb-0 px-0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -99,26 +99,26 @@
|
|||||||
<div v-if="isEmailOrWebWidgetInbox">
|
<div v-if="isEmailOrWebWidgetInbox">
|
||||||
<label>
|
<label>
|
||||||
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.LABEL') }}
|
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.LABEL') }}
|
||||||
<reply-email-head
|
|
||||||
v-if="isAnEmailInbox"
|
|
||||||
:cc-emails.sync="ccEmails"
|
|
||||||
:bcc-emails.sync="bccEmails"
|
|
||||||
/>
|
|
||||||
<label class="editor-wrap">
|
|
||||||
<woot-message-editor
|
|
||||||
v-model="message"
|
|
||||||
class="message-editor"
|
|
||||||
:class="{ editor_warning: $v.message.$error }"
|
|
||||||
:enable-variables="true"
|
|
||||||
:placeholder="$t('NEW_CONVERSATION.FORM.MESSAGE.PLACEHOLDER')"
|
|
||||||
@toggle-canned-menu="toggleCannedMenu"
|
|
||||||
@blur="$v.message.$touch"
|
|
||||||
/>
|
|
||||||
<span v-if="$v.message.$error" class="editor-warning__message">
|
|
||||||
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.ERROR') }}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
</label>
|
</label>
|
||||||
|
<reply-email-head
|
||||||
|
v-if="isAnEmailInbox"
|
||||||
|
:cc-emails.sync="ccEmails"
|
||||||
|
:bcc-emails.sync="bccEmails"
|
||||||
|
/>
|
||||||
|
<div class="editor-wrap">
|
||||||
|
<woot-message-editor
|
||||||
|
v-model="message"
|
||||||
|
class="message-editor"
|
||||||
|
:class="{ editor_warning: $v.message.$error }"
|
||||||
|
:enable-variables="true"
|
||||||
|
:placeholder="$t('NEW_CONVERSATION.FORM.MESSAGE.PLACEHOLDER')"
|
||||||
|
@toggle-canned-menu="toggleCannedMenu"
|
||||||
|
@blur="$v.message.$touch"
|
||||||
|
/>
|
||||||
|
<span v-if="$v.message.$error" class="editor-warning__message">
|
||||||
|
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.ERROR') }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<whatsapp-templates
|
<whatsapp-templates
|
||||||
v-else-if="hasWhatsappTemplates"
|
v-else-if="hasWhatsappTemplates"
|
||||||
|
|||||||
@@ -16,19 +16,23 @@
|
|||||||
@blur="$v.title.$touch"
|
@blur="$v.title.$touch"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<label v-if="isOngoingType" class="editor-wrap">
|
<div v-if="isOngoingType" class="editor-wrap">
|
||||||
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
|
<label>
|
||||||
<woot-message-editor
|
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
|
||||||
v-model="message"
|
</label>
|
||||||
class="message-editor"
|
<div>
|
||||||
:class="{ editor_warning: $v.message.$error }"
|
<woot-message-editor
|
||||||
:placeholder="$t('CAMPAIGN.ADD.FORM.MESSAGE.PLACEHOLDER')"
|
v-model="message"
|
||||||
@blur="$v.message.$touch"
|
class="message-editor"
|
||||||
/>
|
:class="{ editor_warning: $v.message.$error }"
|
||||||
<span v-if="$v.message.$error" class="editor-warning__message">
|
:placeholder="$t('CAMPAIGN.ADD.FORM.MESSAGE.PLACEHOLDER')"
|
||||||
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.ERROR') }}
|
@blur="$v.message.$touch"
|
||||||
</span>
|
/>
|
||||||
</label>
|
<span v-if="$v.message.$error" class="editor-warning__message">
|
||||||
|
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.ERROR') }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<label v-else :class="{ error: $v.message.$error }">
|
<label v-else :class="{ error: $v.message.$error }">
|
||||||
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
|
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
|
||||||
|
|||||||
@@ -12,8 +12,10 @@
|
|||||||
:placeholder="$t('CAMPAIGN.ADD.FORM.TITLE.PLACEHOLDER')"
|
:placeholder="$t('CAMPAIGN.ADD.FORM.TITLE.PLACEHOLDER')"
|
||||||
@blur="$v.title.$touch"
|
@blur="$v.title.$touch"
|
||||||
/>
|
/>
|
||||||
<label class="editor-wrap">
|
<div class="editor-wrap">
|
||||||
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
|
<label>
|
||||||
|
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
|
||||||
|
</label>
|
||||||
<woot-message-editor
|
<woot-message-editor
|
||||||
v-model="message"
|
v-model="message"
|
||||||
class="message-editor"
|
class="message-editor"
|
||||||
@@ -25,7 +27,7 @@
|
|||||||
<span v-if="$v.message.$error" class="editor-warning__message">
|
<span v-if="$v.message.$error" class="editor-warning__message">
|
||||||
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.ERROR') }}
|
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.ERROR') }}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</div>
|
||||||
|
|
||||||
<label :class="{ error: $v.selectedInbox.$error }">
|
<label :class="{ error: $v.selectedInbox.$error }">
|
||||||
{{ $t('CAMPAIGN.ADD.FORM.INBOX.LABEL') }}
|
{{ $t('CAMPAIGN.ADD.FORM.INBOX.LABEL') }}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</select>
|
</select>
|
||||||
</label>
|
</label>
|
||||||
<div v-if="preChatFormEnabled">
|
<div v-if="preChatFormEnabled">
|
||||||
<label class="w-[70%]">
|
<div class="w-[70%]">
|
||||||
<label>
|
<label>
|
||||||
{{ $t('INBOX_MGMT.PRE_CHAT_FORM.PRE_CHAT_MESSAGE.LABEL') }}
|
{{ $t('INBOX_MGMT.PRE_CHAT_FORM.PRE_CHAT_MESSAGE.LABEL') }}
|
||||||
</label>
|
</label>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
$t('INBOX_MGMT.PRE_CHAT_FORM.PRE_CHAT_MESSAGE.PLACEHOLDER')
|
$t('INBOX_MGMT.PRE_CHAT_FORM.PRE_CHAT_MESSAGE.PLACEHOLDER')
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</label>
|
</div>
|
||||||
<div class="w-[70%] mt-4">
|
<div class="w-[70%] mt-4">
|
||||||
<label>{{ $t('INBOX_MGMT.PRE_CHAT_FORM.SET_FIELDS') }}</label>
|
<label>{{ $t('INBOX_MGMT.PRE_CHAT_FORM.SET_FIELDS') }}</label>
|
||||||
<table class="table table-striped w-full">
|
<table class="table table-striped w-full">
|
||||||
|
|||||||
@@ -15,9 +15,11 @@
|
|||||||
</label>
|
</label>
|
||||||
<p>{{ $t('INBOX_MGMT.BUSINESS_HOURS.TOGGLE_HELP') }}</p>
|
<p>{{ $t('INBOX_MGMT.BUSINESS_HOURS.TOGGLE_HELP') }}</p>
|
||||||
<div v-if="isBusinessHoursEnabled" class="mb-6">
|
<div v-if="isBusinessHoursEnabled" class="mb-6">
|
||||||
<label class="unavailable-input-wrap">
|
<div class="max-w-[37.5rem]">
|
||||||
{{ $t('INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_LABEL') }}
|
<label class="unavailable-input-wrap">
|
||||||
<label
|
{{ $t('INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_LABEL') }}
|
||||||
|
</label>
|
||||||
|
<div
|
||||||
v-if="isRichEditorEnabled"
|
v-if="isRichEditorEnabled"
|
||||||
class="py-0 px-4 border border-solid border-slate-200 dark:border-slate-600 bg-white dark:bg-slate-900 rounded-md mx-0 mt-0 mb-4"
|
class="py-0 px-4 border border-solid border-slate-200 dark:border-slate-600 bg-white dark:bg-slate-900 rounded-md mx-0 mt-0 mb-4"
|
||||||
>
|
>
|
||||||
@@ -28,9 +30,9 @@
|
|||||||
class="message-editor"
|
class="message-editor"
|
||||||
:min-height="4"
|
:min-height="4"
|
||||||
/>
|
/>
|
||||||
</label>
|
</div>
|
||||||
<textarea v-else v-model="unavailableMessage" type="text" />
|
<textarea v-else v-model="unavailableMessage" type="text" />
|
||||||
</label>
|
</div>
|
||||||
<div class="timezone-input-wrap">
|
<div class="timezone-input-wrap">
|
||||||
<label>
|
<label>
|
||||||
{{ $t('INBOX_MGMT.BUSINESS_HOURS.TIMEZONE_LABEL') }}
|
{{ $t('INBOX_MGMT.BUSINESS_HOURS.TIMEZONE_LABEL') }}
|
||||||
|
|||||||
@@ -1,22 +1,25 @@
|
|||||||
<template>
|
<template>
|
||||||
<section>
|
<section class="w-[75%]">
|
||||||
<label v-if="richtext" class="greetings--richtext">
|
<div
|
||||||
|
v-if="richtext"
|
||||||
|
class="py-0 px-4 rounded-md border border-solid border-slate-200 dark:border-slate-600 bg-white dark:bg-slate-900 mt-0 mx-0 mb-4"
|
||||||
|
>
|
||||||
<woot-message-editor
|
<woot-message-editor
|
||||||
v-model="greetingsMessage"
|
v-model="greetingsMessage"
|
||||||
:is-format-mode="true"
|
:is-format-mode="true"
|
||||||
:enable-variables="true"
|
:enable-variables="true"
|
||||||
class="input"
|
class="input bg-white dark:bg-slate-900"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
:min-height="4"
|
:min-height="4"
|
||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
/>
|
/>
|
||||||
</label>
|
</div>
|
||||||
<resizable-text-area
|
<resizable-text-area
|
||||||
v-else
|
v-else
|
||||||
v-model="greetingsMessage"
|
v-model="greetingsMessage"
|
||||||
rows="4"
|
rows="4"
|
||||||
type="text"
|
type="text"
|
||||||
class="medium-9 greetings--textarea"
|
class="greetings--textarea"
|
||||||
:label="label"
|
:label="label"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
@input="handleInput"
|
@input="handleInput"
|
||||||
@@ -68,12 +71,3 @@ export default {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
.greetings--richtext {
|
|
||||||
padding: 0 var(--space-normal);
|
|
||||||
border-radius: var(--border-radius-normal);
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
margin: 0 0 var(--space-normal);
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user