mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: iamsivin <iamsivin@gmail.com>
		
			
				
	
	
		
			40 lines
		
	
	
		
			883 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			883 B
		
	
	
	
		
			Vue
		
	
	
	
	
	
<template>
 | 
						|
  <dyte-video-call
 | 
						|
    v-if="showDyteIntegration"
 | 
						|
    :message-id="messageId"
 | 
						|
    :meeting-data="contentAttributes.data"
 | 
						|
  />
 | 
						|
</template>
 | 
						|
<script>
 | 
						|
import DyteVideoCall from './integrations/Dyte.vue';
 | 
						|
import inboxMixin from 'shared/mixins/inboxMixin';
 | 
						|
 | 
						|
export default {
 | 
						|
  components: { DyteVideoCall },
 | 
						|
  mixins: [inboxMixin],
 | 
						|
  props: {
 | 
						|
    messageId: {
 | 
						|
      type: [String, Number],
 | 
						|
      default: 0,
 | 
						|
    },
 | 
						|
    contentAttributes: {
 | 
						|
      type: Object,
 | 
						|
      default: () => ({}),
 | 
						|
    },
 | 
						|
    inboxId: {
 | 
						|
      type: [String, Number],
 | 
						|
      default: 0,
 | 
						|
    },
 | 
						|
  },
 | 
						|
  computed: {
 | 
						|
    showDyteIntegration() {
 | 
						|
      const isEnabledOnTheInbox = this.isAPIInbox || this.isAWebWidgetInbox;
 | 
						|
      return isEnabledOnTheInbox && this.contentAttributes.type === 'dyte';
 | 
						|
    },
 | 
						|
    inbox() {
 | 
						|
      return this.$store.getters['inboxes/getInbox'](this.inboxId);
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 | 
						|
</script>
 |