mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-30 10:42:38 +00:00
Bug: Fix missing close button on mobile chat window (#600)
Co-authored-by: Pranav Raj Sreepuram <pranavrajs@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8b4df986bf
commit
60dc564f37
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div id="app" class="woot-widget-wrap">
|
||||
<div id="app" class="woot-widget-wrap" :class="{ 'is-mobile': isMobile }">
|
||||
<router-view />
|
||||
</div>
|
||||
</template>
|
||||
@@ -11,6 +11,11 @@ import { IFrameHelper } from 'widget/helpers/utils';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
data() {
|
||||
return {
|
||||
isMobile: false,
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
const { website_token: websiteToken = '' } = window.chatwootWebChannel;
|
||||
if (IFrameHelper.isIFrame()) {
|
||||
@@ -40,6 +45,8 @@ export default {
|
||||
this.scrollConversationToBottom();
|
||||
} else if (message.event === 'set-current-url') {
|
||||
window.refererURL = message.refererURL;
|
||||
} else if (message.event === 'toggle-close-button') {
|
||||
this.isMobile = message.showClose;
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user