File tree 3 files changed +14
-11
lines changed
3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 2
2
<div class =" chat-list" :style =" {background: colors.chatList.bg}" >
3
3
<table >
4
4
<tbody >
5
- <tr v-for =" chat in chatList" :key =" chat.id" @click =" openChat(chat.id)" >
5
+ <tr class = " chat-list-row " v-for =" chat in chatList" :key =" chat.id" @click =" openChat(chat.id)" >
6
6
<td class =" chat-img-td" >
7
7
<img :src =" chat.imageUrl" class =" chat-img" />
8
8
</td >
@@ -53,6 +53,9 @@ export default {
53
53
padding-right : 8px ;
54
54
padding-top : 8px ;
55
55
}
56
+ .chat-list-row {
57
+ cursor : pointer ;
58
+ }
56
59
.chat-img-td {
57
60
box-sizing : border-box ;
58
61
text-align : center ;
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ export default {
210
210
}
211
211
},
212
212
watch: {
213
- multipleChatsEnabled : function (newMultipleChatsEnabled ) {
213
+ multipleChatsEnabled (newMultipleChatsEnabled ) {
214
214
this .state = this .initialState ()
215
215
}
216
216
},
Original file line number Diff line number Diff line change @@ -155,31 +155,31 @@ export default {
155
155
},
156
156
title: {
157
157
type: String ,
158
- default : () => ' '
158
+ default: ' '
159
159
},
160
160
titleImageUrl: {
161
161
type: String ,
162
- default : () => ' '
162
+ default: ' '
163
163
},
164
164
onMessageWasSent: {
165
165
type: Function ,
166
166
required: true
167
167
},
168
168
messageList: {
169
169
type: Array ,
170
- default : () => []
170
+ default: []
171
171
},
172
172
newMessagesCount: {
173
173
type: Number ,
174
- default : () => 0
174
+ default: 0
175
175
},
176
176
placeholder: {
177
177
type: String ,
178
178
default: ' Write a message...'
179
179
},
180
180
showTypingIndicator: {
181
181
type: String ,
182
- default : () => ' '
182
+ default: ' '
183
183
},
184
184
colors: {
185
185
type: Object ,
@@ -229,11 +229,11 @@ export default {
229
229
},
230
230
alwaysScrollToBottom: {
231
231
type: Boolean ,
232
- default : () => false
232
+ default: false
233
233
},
234
234
messageStyling: {
235
235
type: Boolean ,
236
- default : () => false
236
+ default: false
237
237
},
238
238
disableUserListToggle: {
239
239
type: Boolean ,
@@ -249,11 +249,11 @@ export default {
249
249
},
250
250
chatListTitle: {
251
251
type: String ,
252
- default : () => ' '
252
+ default: ' '
253
253
},
254
254
chatListImageUrl: {
255
255
type: String ,
256
- default : () => ' '
256
+ default: ' '
257
257
},
258
258
myId: {
259
259
type: String ,
You can’t perform that action at this time.
0 commit comments