feat: Add a popout option on webwidget (#1174)

* feat: Add a popout option on webwidget
This commit is contained in:
Pranav Raj S
2020-08-28 17:39:46 +05:30
committed by GitHub
parent ce13efd273
commit 45cd949c40
17 changed files with 347 additions and 127 deletions

View File

@@ -6,11 +6,13 @@
:intro-heading="introHeading"
:intro-body="introBody"
:avatar-url="channelConfig.avatarUrl"
:show-popout-button="showPopoutButton"
/>
<ChatHeader
v-else
:title="channelConfig.websiteName"
:avatar-url="channelConfig.avatarUrl"
:show-popout-button="showPopoutButton"
/>
</div>
<AvailableAgents v-if="showAvailableAgents" :agents="availableAgents" />
@@ -69,6 +71,10 @@ export default {
type: Number,
default: 0,
},
showPopoutButton: {
type: Boolean,
default: false,
},
},
computed: {
isOpen() {

View File

@@ -12,6 +12,7 @@
:has-fetched="hasFetched"
:conversation-attributes="conversationAttributes"
:unread-message-count="unreadMessageCount"
:show-popout-button="showPopoutButton"
/>
<unread
v-else
@@ -81,6 +82,10 @@ export default {
type: Number,
default: 0,
},
showPopoutButton: {
type: Boolean,
default: false,
},
},
};
</script>