mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-04 04:57:51 +00:00 
			
		
		
		
	- Add config for TailwindCSS - Enable HMR - Add a config in LocalStorage for Dark Mode Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
		
			
				
	
	
		
			33 lines
		
	
	
		
			569 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			569 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <div class="w-8 h-8">
 | 
						|
    <router-link :to="dashboardPath" replace>
 | 
						|
      <img :src="source" :alt="name" />
 | 
						|
    </router-link>
 | 
						|
  </div>
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
import { frontendURL } from 'dashboard/helper/URLHelper';
 | 
						|
 | 
						|
export default {
 | 
						|
  props: {
 | 
						|
    source: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    name: {
 | 
						|
      type: String,
 | 
						|
      default: '',
 | 
						|
    },
 | 
						|
    accountId: {
 | 
						|
      type: Number,
 | 
						|
      default: 0,
 | 
						|
    },
 | 
						|
  },
 | 
						|
  computed: {
 | 
						|
    dashboardPath() {
 | 
						|
      return frontendURL(`accounts/${this.accountId}/dashboard`);
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |