Chore: Web widget Inbox Tech Debts (#738)

* Chore: Webwidget Inbox Tech Debts

* Additional customization options creating Web Widget
* Changes to edit Page for Web Widget
* Remove the WebWidget API end points
* Minor chores

Address: #680, #502

Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
Sojan Jose
2020-04-19 23:40:28 +05:30
committed by GitHub
parent c0ce70e87b
commit 941fbb0d72
46 changed files with 564 additions and 503 deletions

View File

@@ -1,8 +1,12 @@
<template>
<div class="home">
<div class="header-wrap">
<ChatHeaderExpanded v-if="isHeaderExpanded" />
<ChatHeader v-else :title="getHeaderName" />
<ChatHeaderExpanded
v-if="isHeaderExpanded"
:intro-heading="channelConfig.welcomeTitle"
:intro-body="channelConfig.welcomeTagline"
/>
<ChatHeader v-else :title="channelConfig.websiteName" />
</div>
<AvailableAgents v-if="showAvailableAgents" :agents="availableAgents" />
<ConversationWrap :grouped-messages="groupedMessages" />
@@ -45,8 +49,8 @@ export default {
isHeaderExpanded() {
return this.conversationSize === 0;
},
getHeaderName() {
return window.chatwootWebChannel.website_name;
channelConfig() {
return window.chatwootWebChannel;
},
showAvailableAgents() {
return this.availableAgents.length > 0 && this.conversationSize < 1;