Init Contact Panel (#206)
This commit is contained in:
parent
b985085786
commit
88fc4d894a
7 changed files with 138 additions and 11 deletions
|
@ -13,12 +13,14 @@
|
|||
class="user-thumbnail"
|
||||
background-color="#1f93ff"
|
||||
color="white"
|
||||
:size="avatarSize"
|
||||
>
|
||||
</Avatar>
|
||||
<img
|
||||
v-if="badge === 'Facebook'"
|
||||
id="badge"
|
||||
class="source-badge"
|
||||
:style="badgeStyle"
|
||||
src="~dashboard/assets/images/fb-badge.png"
|
||||
/>
|
||||
</div>
|
||||
|
@ -58,6 +60,15 @@ export default {
|
|||
imgError: false,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
avatarSize() {
|
||||
return Number(this.size.replace(/\D+/g, ''));
|
||||
},
|
||||
badgeStyle() {
|
||||
const badgeSize = `${this.avatarSize / 3}px`;
|
||||
return { width: badgeSize, height: badgeSize };
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
onImgError() {
|
||||
this.imgError = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue