mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			35 lines
		
	
	
		
			682 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			682 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <button
 | 
						|
    class="header-section flex items-center text-base font-normal mr-4 ml-2 cursor-pointer text-woot-500 dark:text-woot-500"
 | 
						|
    @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>
 |