fix: Editor file upload browser showing bug (#8019)

This commit is contained in:
Sivin Varghese
2023-09-29 17:53:54 +05:30
committed by GitHub
parent 8ce7539c5e
commit 845b0c0a68
7 changed files with 59 additions and 57 deletions

View File

@@ -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>

View File

@@ -99,12 +99,13 @@
<div v-if="isEmailOrWebWidgetInbox"> <div v-if="isEmailOrWebWidgetInbox">
<label> <label>
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.LABEL') }} {{ $t('NEW_CONVERSATION.FORM.MESSAGE.LABEL') }}
</label>
<reply-email-head <reply-email-head
v-if="isAnEmailInbox" v-if="isAnEmailInbox"
:cc-emails.sync="ccEmails" :cc-emails.sync="ccEmails"
:bcc-emails.sync="bccEmails" :bcc-emails.sync="bccEmails"
/> />
<label class="editor-wrap"> <div class="editor-wrap">
<woot-message-editor <woot-message-editor
v-model="message" v-model="message"
class="message-editor" class="message-editor"
@@ -117,8 +118,7 @@
<span v-if="$v.message.$error" class="editor-warning__message"> <span v-if="$v.message.$error" class="editor-warning__message">
{{ $t('NEW_CONVERSATION.FORM.MESSAGE.ERROR') }} {{ $t('NEW_CONVERSATION.FORM.MESSAGE.ERROR') }}
</span> </span>
</label> </div>
</label>
</div> </div>
<whatsapp-templates <whatsapp-templates
v-else-if="hasWhatsappTemplates" v-else-if="hasWhatsappTemplates"

View File

@@ -16,8 +16,11 @@
@blur="$v.title.$touch" @blur="$v.title.$touch"
/> />
<label v-if="isOngoingType" class="editor-wrap"> <div v-if="isOngoingType" class="editor-wrap">
<label>
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }} {{ $t('CAMPAIGN.ADD.FORM.MESSAGE.LABEL') }}
</label>
<div>
<woot-message-editor <woot-message-editor
v-model="message" v-model="message"
class="message-editor" class="message-editor"
@@ -28,7 +31,8 @@
<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>
</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') }}

View File

@@ -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">
<label>
{{ $t('CAMPAIGN.ADD.FORM.MESSAGE.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') }}

View File

@@ -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">

View File

@@ -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">
<div class="max-w-[37.5rem]">
<label class="unavailable-input-wrap"> <label class="unavailable-input-wrap">
{{ $t('INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_LABEL') }} {{ $t('INBOX_MGMT.BUSINESS_HOURS.UNAVAILABLE_MESSAGE_LABEL') }}
<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') }}

View File

@@ -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>