mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 03:27:52 +00:00
Fixes: CW-3602, CW-3606, CW-3605, CW-3601, CW-3603, CW-3600, CW-3598 - [CW-3602](https://linear.app/chatwoot/issue/CW-3602/chat-list-infinite-loader-fetching-only-odd-numbered-pages) Chat list pagination broken - [CW-3606](https://linear.app/chatwoot/issue/CW-3606/saving-greeting-message-is-not-working-in-inbox-settings) Greetings message not getting saved - [CW-3605](https://linear.app/chatwoot/issue/CW-3605/copy-and-paste-image-attachment-not-working-in-widget) Paste not working on widget - [CW-3601](https://linear.app/chatwoot/issue/CW-3601/edit-category-is-not-working-properly) Edit category not updating - [CW-3603](https://linear.app/chatwoot/issue/CW-3603/delete-filter-is-not-working) Delete filter modal not toggling - [CW-3600](https://linear.app/chatwoot/issue/CW-3600/portal-editor-is-not-working-properly) Portal editor events were flaky - [CW-3598](https://linear.app/chatwoot/issue/CW-3598/rearrange-of-pre-chat-form-fields-throws-an-error) Prechat form re-order bug --------- Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com>
48 lines
1.3 KiB
Vue
48 lines
1.3 KiB
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
import WootMessageEditor from 'dashboard/components/widgets/WootWriter/Editor.vue';
|
|
import ResizableTextArea from 'shared/components/ResizableTextArea.vue';
|
|
|
|
const props = defineProps({
|
|
modelValue: { type: String, default: '' },
|
|
richtext: { type: Boolean, default: false },
|
|
label: { type: String, default: '' },
|
|
placeholder: { type: String, default: '' },
|
|
});
|
|
|
|
const emit = defineEmits(['update:modelValue']);
|
|
|
|
const greetingsMessage = computed({
|
|
get: () => props.modelValue,
|
|
set: value => emit('update:modelValue', value),
|
|
});
|
|
</script>
|
|
|
|
<template>
|
|
<section class="w-3/4">
|
|
<div
|
|
v-if="richtext"
|
|
class="px-4 py-0 mx-0 mt-0 mb-4 bg-white border border-solid rounded-md border-slate-200 dark:border-slate-600 dark:bg-slate-900"
|
|
>
|
|
<WootMessageEditor
|
|
v-model="greetingsMessage"
|
|
is-format-mode
|
|
enable-variables
|
|
class="bg-white input dark:bg-slate-900"
|
|
:placeholder="placeholder"
|
|
:min-height="4"
|
|
/>
|
|
</div>
|
|
<ResizableTextArea
|
|
v-else
|
|
v-model="greetingsMessage"
|
|
:rows="4"
|
|
type="text"
|
|
class="greetings--textarea"
|
|
:label="label"
|
|
:placeholder="placeholder"
|
|
@input="handleInput"
|
|
/>
|
|
</section>
|
|
</template>
|