Move src to dashboard (#152)
This commit is contained in:
19
app/javascript/dashboard/components/Thumbnail.vue
Normal file
19
app/javascript/dashboard/components/Thumbnail.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<div class="profile-card">
|
||||
<div class="profile-image" v-bind:style="{ height: size, width: size }">
|
||||
<img v-bind:src="src">
|
||||
</div>
|
||||
<img class="source-badge" src="../assets/images/fb-badge.png" v-if="badge === 'fb'">
|
||||
</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', 'size', 'badge'],
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user