Skip to content

Commit

Permalink
Update: add new event to open the board manually
Browse files Browse the repository at this point in the history
  • Loading branch information
juzser committed Nov 4, 2021
1 parent 3dad37f commit ae6d701
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/BotUI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
</template>
<script>
import EventBus from '../helpers/event-bus'
import Config from '../config'
import BoardHeader from './Board/Header'
import BoardContent from './Board/Content'
import BoardAction from './Board/Action'
Expand Down Expand Up @@ -137,6 +138,12 @@ export default {
}
},
mounted () {
document.addEventListener(Config.EVENT_OPEN, function () {
this.botOpen()
})
},
beforeDestroy () {
EventBus.$off('select-button-option')
},
Expand Down
3 changes: 3 additions & 0 deletions src/config/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
EVENT_OPEN: 'botui-open'
}

0 comments on commit ae6d701

Please sign in to comment.