We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dad37f commit ae6d701Copy full SHA for ae6d701
src/components/BotUI.vue
@@ -38,6 +38,7 @@
38
</template>
39
<script>
40
import EventBus from '../helpers/event-bus'
41
+import Config from '../config'
42
import BoardHeader from './Board/Header'
43
import BoardContent from './Board/Content'
44
import BoardAction from './Board/Action'
@@ -137,6 +138,12 @@ export default {
137
138
}
139
},
140
141
+ mounted () {
142
+ document.addEventListener(Config.EVENT_OPEN, function () {
143
+ this.botOpen()
144
+ })
145
+ },
146
+
147
beforeDestroy () {
148
EventBus.$off('select-button-option')
149
src/config/index.js
@@ -0,0 +1,3 @@
1
+export default {
2
+ EVENT_OPEN: 'botui-open'
3
+}
0 commit comments