File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 2323 :showEdition =" true"
2424 :showDeletion =" true"
2525 :titleImageUrl =" titleImageUrl"
26+ :chatListImageUrl =" chatListImageUrl"
2627 :placeholder =" placeholder"
2728 :multipleChatsEnabled =" multipleChatsEnabled"
2829 :chatList =" chatList"
@@ -133,8 +134,8 @@ export default {
133134 },
134135 data () {
135136 return {
136- titleImageUrl:
137- ' https://a.slack-edge.com/66f9/img/avatars-teams/ava_0001-34.png' ,
137+ titleImageUrl: " https://a.slack-edge.com/66f9/img/avatars-teams/ava_0001-34.png " ,
138+ chatListImageUrl : " https://a.slack-edge.com/66f9/img/avatars-teams/ava_0001-34.png" ,
138139 chatHistory: chatHistory,
139140 isChatOpen: false ,
140141 showTypingIndicator: ' ' ,
@@ -217,6 +218,9 @@ export default {
217218 handleChangeCurrentChat (newCurrentChatID ) {
218219 this .showTypingIndicator = ' '
219220 this .currentChatID = newCurrentChatID
221+ const chat = this .chatHistory [this .currentChatID ]
222+ this .titleImageUrl = chat .imageUrl
223+ this .title = chat .name
220224 },
221225 handleMultipleChatsEnabledChange (newMultipleChatsEnabled ) {
222226 this .multipleChatsEnabled = newMultipleChatsEnabled
Original file line number Diff line number Diff line change 55 :show-close-button =" showCloseButton"
66 :show-chat-list-button =" multipleChatsEnabled && !showingChatList"
77 :title =" showingChatList ? chatListTitle : title"
8- :image-url =" titleImageUrl"
8+ :image-url =" showingChatList ? chatListImageUrl : titleImageUrl"
99 :on-close =" onClose"
1010 :colors =" colors"
1111 :disable-user-list-toggle =" disableUserListToggle || showingChatList"
2121 v-if =" showingChatList"
2222 :colors =" colors"
2323 :chatList =" chatList"
24- @changeCurrentChat =" (chatID) => { this. $emit('changeCurrentChat', chatID) }"
24+ @changeCurrentChat =" (chatID) => { $emit('changeCurrentChat', chatID) }"
2525 @showMessageList =" handleShowMessageList"
2626 />
2727 <MessageList
@@ -137,6 +137,10 @@ export default {
137137 type: String ,
138138 default: ' '
139139 },
140+ chatListImageUrl: {
141+ type: String ,
142+ default: ' '
143+ },
140144 onUserInputSubmit: {
141145 type: Function ,
142146 required: true
Original file line number Diff line number Diff line change @@ -90,8 +90,9 @@ export default {
9090 border-radius : 50% ;
9191 align-self : center ;
9292 padding : 10px ;
93- width :34px ;
94- height :34px ;
93+ box-sizing : border-box ;
94+ width :54px ;
95+ height :54px ;
9596}
9697
9798.sc-header--title {
Original file line number Diff line number Diff line change 3737 :multiple-chats-enabled =" multipleChatsEnabled"
3838 :chat-list =" chatList"
3939 :chat-list-title =" chatListTitle"
40+ :chat-list-image-url =" chatListImageUrl"
4041 :myId =" myId"
4142 @scrollToTop =" $emit('scrollToTop')"
4243 @onType =" $emit('onType')"
@@ -240,6 +241,10 @@ export default {
240241 type: String ,
241242 default : () => ' '
242243 },
244+ chatListImageUrl: {
245+ type: String ,
246+ default : () => ' '
247+ },
243248 myId: {
244249 type: String ,
245250 default: ' me'
You can’t perform that action at this time.
0 commit comments