Skip to content

Commit

Permalink
feature/FOUR-13370
Browse files Browse the repository at this point in the history
  • Loading branch information
luNunezProcessmaker committed Feb 8, 2024
1 parent 3913e49 commit 4213c55
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/components/renderer/form-avatar.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<template>
<span>
<b-button
variant="primary"
:variant="variant()"
class="avatar-button rounded-circle overflow-hidden p-0 m-0 d-inline-flex border-0"
disabled
>
<img v-if="user.avatar" :src="user.avatar" :width="width" :height="height">
<img v-if="user.avatar"
:src="user.avatar"
:width="width"
:height="height"
:class="image"
:alt="user.fullname"
>

<span
v-else
Expand Down Expand Up @@ -44,6 +50,13 @@ export default {
? this.user.firstname.match(/./u)[0] + this.user.lastname.match(/./u)[0]
: "";
},
variant() {
if (this.user.avatar) {
return 'secondary';
} else {
return 'info';
}
},
styleAvatar() {
return "width: " +
this.width +
Expand Down

0 comments on commit 4213c55

Please sign in to comment.