[Enhancement] Hide sidebar on tablets (#358)
* [Enhancement] Hide sidebar on tablets * Remove unnecessary console.log * Use beforeDestroy
This commit is contained in:
parent
2b41e91768
commit
febc4bef83
12 changed files with 136 additions and 38 deletions
14
app/javascript/dashboard/components/SidemenuIcon.vue
Normal file
14
app/javascript/dashboard/components/SidemenuIcon.vue
Normal file
|
@ -0,0 +1,14 @@
|
|||
<template>
|
||||
<i class="ion-android-menu hamburger--menu" @click="onMenuItemClick"></i>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* global bus */
|
||||
export default {
|
||||
methods: {
|
||||
onMenuItemClick() {
|
||||
bus.$emit('sidemenu_icon_click');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue