mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	* fix: vertical overflow scroll on BackButton Co-authored-by: raph941 <45232708+raph941@users.noreply.github.com> * chore: adds suggested improvement to handle RTS view Co-authored-by: raph941 <45232708+raph941@users.noreply.github.com> --------- Co-authored-by: raph941 <45232708+raph941@users.noreply.github.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			32 lines
		
	
	
		
			585 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			585 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <button class="header-section 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>
 |