mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 20:18:08 +00:00
feat: Show popular articles on widget home (#7604)
This commit is contained in:
committed by
GitHub
parent
9efadf8804
commit
e052a061f4
34
app/javascript/widget/views/ArticleViewer.vue
Normal file
34
app/javascript/widget/views/ArticleViewer.vue
Normal file
@@ -0,0 +1,34 @@
|
||||
<template>
|
||||
<div class="bg-white h-full">
|
||||
<iframe-loader :url="link" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { IFrameHelper } from 'widget/helpers/utils';
|
||||
import IframeLoader from 'shared/components/IframeLoader';
|
||||
|
||||
export default {
|
||||
name: 'Campaigns',
|
||||
components: {
|
||||
IframeLoader,
|
||||
},
|
||||
props: {
|
||||
link: {
|
||||
type: String,
|
||||
default: '',
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
closeFullView() {
|
||||
if (IFrameHelper.isIFrame()) {
|
||||
IFrameHelper.sendMessage({
|
||||
event: 'setCampaignReadOn',
|
||||
});
|
||||
IFrameHelper.sendMessage({ event: 'toggleBubble' });
|
||||
bus.$emit('snooze-campaigns');
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user