Feature: Send images from widget

This commit is contained in:
Nithin David Thomas 2020-03-30 12:15:06 +05:30 committed by GitHub
parent e56132c506
commit 6c4e1fdaac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 305 additions and 67 deletions

View file

@ -1,5 +1,6 @@
<template>
<div class="chat-message--input">
<chat-attchment-button :on-attach="onSendAttachment" />
<ChatInputArea v-model="userInput" :placeholder="placeholder" />
<ChatSendButton
:on-click="handleButtonClick"
@ -12,11 +13,13 @@
<script>
import { mapGetters } from 'vuex';
import ChatSendButton from 'widget/components/ChatSendButton.vue';
import ChatAttchmentButton from 'widget/components/ChatAttachment.vue';
import ChatInputArea from 'widget/components/ChatInputArea.vue';
export default {
name: 'ChatInputWrap',
components: {
ChatAttchmentButton,
ChatSendButton,
ChatInputArea,
},
@ -30,6 +33,10 @@ export default {
type: Function,
default: () => {},
},
onSendAttachment: {
type: Function,
default: () => {},
},
},
data() {