mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	* show agent status on conversation assignation * add agent status in contact sidebar * availability status badge component * review fixes * review fixes * chore: Fixes issue with status badge (#2136) * add empty case in agent list * Chore: Availability badge shape issue. #2140 Co-authored-by: Nithin David <webofnithin@gmail.com> Co-authored-by: Sojan <sojan@pepalo.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			558 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			558 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <div :class="`status-badge status-badge__${status}`" />
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
export default {
 | 
						|
  props: {
 | 
						|
    status: { type: String, default: '' },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 | 
						|
<style lang="scss" scoped>
 | 
						|
@import '~dashboard/assets/scss/variables';
 | 
						|
.status-badge {
 | 
						|
  width: var(--space-one);
 | 
						|
  height: var(--space-one);
 | 
						|
  margin-right: var(--space-micro);
 | 
						|
  display: inline-block;
 | 
						|
  border-radius: 50%;
 | 
						|
  &__online {
 | 
						|
    background: var(--g-400);
 | 
						|
  }
 | 
						|
  &__offline {
 | 
						|
    background: var(--b-600);
 | 
						|
  }
 | 
						|
  &__busy {
 | 
						|
    background: var(--y-700);
 | 
						|
  }
 | 
						|
}
 | 
						|
</style>
 |