mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	* Woot tabs * Refactor sidebar related RTL * Context menu * chore: Minor fixes * chore: Dropdown * chore: Toggle switch * chore: sidebar fixes * fix: spacing issues and minor fixes * chore: Space slab to small --------- Co-authored-by: Nithin David <1277421+nithindavid@users.noreply.github.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			579 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			579 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <button class="settings back-button" @click.capture="goBack">
 | 
						|
    <fluent-icon icon="chevron-left" />
 | 
						|
    {{ buttonLabel || $t('GENERAL_SETTINGS.BACK') }}
 | 
						|
  </button>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
import router from '../../routes/index';
 | 
						|
 | 
						|
export default {
 | 
						|
  props: {
 | 
						|
    backUrl: {
 | 
						|
      type: [String, Object],
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    buttonLabel: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
  },
 | 
						|
  methods: {
 | 
						|
    goBack() {
 | 
						|
      if (this.backUrl !== '') {
 | 
						|
        router.push(this.backUrl);
 | 
						|
      } else {
 | 
						|
        router.go(-1);
 | 
						|
      }
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |