File tree Expand file tree Collapse file tree 1 file changed +43
-11
lines changed Expand file tree Collapse file tree 1 file changed +43
-11
lines changed Original file line number Diff line number Diff line change 7
7
<v-list-item-avatar
8
8
v-if =" typeof comment.userId !== 'undefined'"
9
9
size =" 50"
10
- ><v-img
10
+ >
11
+ <v-img
12
+ v-if =" comment.userId.photoUrl !== 'no-photo.jpg'"
13
+ class =" elevation-6"
11
14
:src =" `${url}/uploads/avatars/${comment.userId.photoUrl}`"
12
- ></v-img
13
- ></v-list-item-avatar >
15
+ ></v-img >
16
+ <v-avatar v-else color =" red" >
17
+ <span class =" white--text headline " >
18
+ {{
19
+ comment.userId.channelName.split('')[0].toUpperCase()
20
+ }}</span
21
+ >
22
+ </v-avatar >
23
+ </v-list-item-avatar >
14
24
<v-list-item-content >
15
25
<div class =" d-flex mb-0" >
16
26
<v-list-item-title
61
71
<v-avatar v-if =" !isAuthenticated" color =" primary" >
62
72
<v-icon class =" white--text" >mdi-account</v-icon >
63
73
</v-avatar >
64
- <v-img
65
- v-else
66
- :src =" `${url}/uploads/avatars/${currentUser.photoUrl}`"
67
- ></v-img
68
- ></v-list-item-avatar >
74
+ <template v-else >
75
+ <v-img
76
+ v-if =" currentUser.photoUrl !== 'no-photo.jpg'"
77
+ class =" elevation-6"
78
+ :src =" `${url}/uploads/avatars/${currentUser.photoUrl}`"
79
+ ></v-img >
80
+ <v-avatar v-else color =" red" >
81
+ <span class =" white--text headline " >
82
+ {{
83
+ currentUser.channelName.split('')[0].toUpperCase()
84
+ }}</span
85
+ >
86
+ </v-avatar >
87
+ </template >
88
+ </v-list-item-avatar >
69
89
<v-list-item-content class =" align-self-auto mt-0 pt-0" >
70
90
<v-form :ref =" `form${comment._id}`" >
71
91
<v-text-field
122
142
<v-list-item-avatar
123
143
v-if =" typeof reply !== 'undefined'"
124
144
size =" 50"
125
- ><v-img
145
+ >
146
+ <v-img
147
+ v-if =" reply.userId.photoUrl !== 'no-photo.jpg'"
148
+ class =" elevation-6"
126
149
:src ="
127
150
`${url}/uploads/avatars/${reply.userId.photoUrl}`
128
151
"
129
- ></v-img
130
- ></v-list-item-avatar >
152
+ ></v-img >
153
+ <v-avatar v-else color =" red" >
154
+ <span class =" white--text headline " >
155
+ {{
156
+ reply.userId.channelName
157
+ .split('')[0]
158
+ .toUpperCase()
159
+ }}</span
160
+ >
161
+ </v-avatar >
162
+ </v-list-item-avatar >
131
163
<v-list-item-content >
132
164
<div class =" d-flex mb-0" >
133
165
<v-list-item-title
You can’t perform that action at this time.
0 commit comments