Chatwoot/app/javascript/dashboard/components/widgets/Thumbnail.vue

30 lines
628 B
Vue
Raw Normal View History

<template>
<div class="user-thumbnail-box" v-bind:style="{ height: size, width: size }">
<img v-bind:src="src" class="user-thumbnail">
2019-10-16 09:06:17 +00:00
<img class="source-badge" src="~dashboard/assets/images/fb-badge.png" v-if="badge === 'Facebook'">
</div>
</template>
<script>
/**
* Thumbnail Component
* Src - source for round image
* Size - Size of the thumbnail
* Badge - Chat source indication { fb / telegram }
*/
export default {
props: {
src: {
type: String,
},
size: {
type: String,
default: '40px',
},
badge: {
type: String,
default: 'fb',
},
},
};
2019-10-16 09:06:17 +00:00
</script>