mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
		
			
				
	
	
		
			29 lines
		
	
	
		
			506 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			506 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <woot-button
 | 
						|
    size="small"
 | 
						|
    variant="clear"
 | 
						|
    color-scheme="secondary"
 | 
						|
    icon="list"
 | 
						|
    class="toggle-sidebar"
 | 
						|
    @click="onMenuItemClick"
 | 
						|
  />
 | 
						|
</template>
 | 
						|
 | 
						|
<script>
 | 
						|
import { BUS_EVENTS } from 'shared/constants/busEvents';
 | 
						|
 | 
						|
export default {
 | 
						|
  methods: {
 | 
						|
    onMenuItemClick() {
 | 
						|
      bus.$emit(BUS_EVENTS.TOGGLE_SIDEMENU);
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 | 
						|
<style scoped lang="scss">
 | 
						|
.toggle-sidebar {
 | 
						|
  margin-right: var(--space-small);
 | 
						|
  margin-left: var(--space-minus-small);
 | 
						|
}
 | 
						|
</style>
 |