Skip to content

Commit 6e66c9a

Browse files
committed
chore: add disabled input to welcome message
1 parent d4d693a commit 6e66c9a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Chat/Chat.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,13 +205,12 @@
205205

206206
<template #form>
207207
<a-chat-form
208-
v-if="!isWelcomeChat(partnerId)"
209208
ref="chatFormRef"
210209
:show-send-button="true"
211210
:send-on-enter="sendMessageOnEnter"
212211
:show-divider="true"
213212
:label="t('chats.message')"
214-
:should-disable-input="shouldDisableInput"
213+
:should-disable-input="isWelcomeChat(partnerId) || shouldDisableInput"
215214
:message-text="
216215
$route.query.messageText || $store.getters['draftMessage/draftMessage'](partnerId)
217216
"
@@ -322,7 +321,6 @@ import { useChatStateStore } from '@/stores/modal-state'
322321
import ChatPlaceholder from '@/components/Chat/ChatPlaceholder.vue'
323322
import { watchImmediate } from '@vueuse/core'
324323
import { NodeStatusResult } from '@/lib/nodes/abstract.node'
325-
import { isAllNodesOfflineError } from '@/lib/nodes/utils/errors'
326324
327325
const validationErrors = {
328326
emptyMessage: 'EMPTY_MESSAGE',

0 commit comments

Comments
 (0)